框架虽多,原生sql也重要

1.虽然现在越来越多的框架,让我们对数据库的操作越来越容易,但是作为软件开发人员还是不能忘记原生sql
2.框架固然好,但是我们要查数据库的时候,总不可能非得去找个可视化的软件来连接软件,然后再查询吧

以下是本人平时用到的比较多的sql(常更新)

select * from auth_user order by id desc limit 1(默认asc)
update file_info set hash_type=0,file_hash=substr(ident,9,length(ident)-1) where file_name like '%.pnf' and hash_type=1

猜你喜欢

转载自blog.csdn.net/mingtiannihaoabc/article/details/86575971