MySQL常用查询命令
MySQL常用查询命令
查询当前数据库表名
show databases;
进入security数据库
use security;
查看该库的表名
show tables;
查询表内的指定表项
select * from users;
查询ID等于1的users类容
select username from users where id=1;
查询ID等于1 的user和password
select username,password from users where id=1;
查询数据库的版本
sel
原创
2021-04-10 02:19:08 ·
220 阅读 ·
0 评论