
mysql常用命令
pyxllq
这个作者很懒,什么都没留下…
展开
-
mysql常用命令
归档记录/*查找表中符合条件的所有记录*/SELECT * FROM my_test WHERE name='test'/*查找表中符合条件的并且name字段不重复的所有记录数*/SELECT COUNT(DISTINCT name) FROM my_testWHERE starttime>='2018-05-09 00:00:00' AND endtime<='2018-05-09...原创 2018-05-16 16:56:02 · 172 阅读 · 0 评论 -
MySQL在insert时遇到“Incorrect integer value: '' for column 'idx' at row 1“
在之前一篇blog中有提到mysql常用数据库语句时,使用过以下语句:insert into new_table select NULL,a.phone,name,age,address,NULL, b.birth from students a, info_table b where studentnum in ( '20180722121735', '20180721174...原创 2018-06-08 10:26:42 · 1321 阅读 · 0 评论