MySQL
哉菌
这个作者很懒,什么都没留下…
展开
-
MySQL学习划水随笔2
记这周学的几个SQL语句=u=,划水划水划水~ 检索a在5和10之间的数据 select * from atable where a between 5 and 10; 检索当a值为空时的数据 select * from atable where a is null; 检索a、b为1,或者c为1时的数据 select * from atable where a=1 and b=1 or c=1; 检索a为1,或者b、c为1时的数据 select * from atable where a=1 or原创 2020-08-02 11:00:46 · 79 阅读 · 0 评论 -
MySQL学习划水随笔1
记几个简单常用的SQL语句=u=,划水划水划水~ 显示所有的数据库 show databases; 进入adatabase这个数据库 use adatabase; 显示所有的表 show tables; 显示某张表的结构 desc atable; 检索a这个列 select a from atable; 检索a,b,c三个列 select a,b,c from atable; 检索a这个列并当b='123'的时候 select a from atable where b='123'; 检索原创 2020-07-26 20:20:39 · 76 阅读 · 0 评论