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%";

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2022-01-01
  • 2022-12-23
  • 2021-08-17
  • 2022-03-04
  • 2022-12-23
猜你喜欢
  • 2021-11-02
  • 2022-03-03
  • 2022-12-23
  • 2021-12-31
  • 2021-06-29
  • 2021-06-10
相关资源
相似解决方案