一:sql 单引号如何转义?
用sql脚本插入数据时,有时需要插入单引号,这时候只需要连续数据两个单引号就可以了!
二:获取表中第二大数据
select * from table where id=(select max(id) from table where id not in(select max(id) from table))
用sql脚本插入数据时,有时需要插入单引号,这时候只需要连续数据两个单引号就可以了!
二:获取表中第二大数据
select * from table where id=(select max(id) from table where id not in(select max(id) from table))