测试工程师需要掌握的基本sql语句(不定期更新)
摘要:
1.查看视图:show table status where comment='view';2.修改表名:alter table table_name rename to new_table_name;3.删除某张表中的一组数据,比如说删除表A里面字段id从1到10的数据:delete from 表A where id in(1,2,3,4,5,6,7,8,9,10);这里可以衍生出其它的语句,比如说,where id not in(1,2,3...)那么这里的删除数据的意思就是不包含id为1,2,3的其它数据了。当然还可以用另外一种方法:delete from table_a 阅读全文
posted @ 2014-01-13 10:15 康大人 阅读(516) 评论(0) 推荐(0)
浙公网安备 33010602011771号