SQL基础:
1.如何查询table1从20到30条记录:
select * from table1 limit 19,11
2.替换id=1,name =deman的记录?
replace into table1(id,name) value(1,"deman");
3.如何复制表?
create table table2 as select * from table1;
4.如何获得最近一次操作影响的数据?
select changes();
5.只显示不为null的数据?
select ifnull(name,id) as value from table;
6.查询name字段包含deman的数据?
select * from table1 where name like "%deman%";