sql语句常用写法crud

xiaoxiao2025-12-13  7

插入:

insert into table_name values(?,?,?);

 

查询:

select * from table_name

 

删除:

delete from table_name where 条件

 

修改:

update table_name set 字段=新值 where 条件

 动态添加条件:

select * from table_name where 1=1;

 

select * table_name where 字段 like '%8'

 

转载请注明原文地址: https://www.6miu.com/read-5040797.html

最新回复(0)