判断表是否存在

xiaoxiao2026-08-21  9

我们在做某些操作时可能会需要判断数据库表是否存在,sql语句为: select count(1) from user_tables t where t.table_name = ‘+tableName+’; 顺便说一个备份表的sql语句: Create table tablename_new as select * from tablename; 修改user表中name_字段把其中含有‘死’的都改成‘思’的sql语句: update user t set t.name_ = replace(t.name_,'死','思'); 相关资源:敏捷开发V1.0.pptx
转载请注明原文地址: https://www.6miu.com/read-5051589.html

最新回复(0)