如何在 T-SQL 中添加“东西”

时间:2021-03-04 09:10:08

标签: tsql

这个 T-SQL

select concat('if exists (select 1 from sysobjects where name = ', 'drop_me_table', ' drop table schema_name.drop_me_table')

给我这个文本

if exists (select 1 from sysobjects where name = drop_me_table drop table schema_name.drop_me_table

我是什么

if exists (select 1 from sysobjects where name = 'drop_me_table' drop table schema_name.drop_me_table

注意包含第一个 drop_me_table 的 ' '

怎么办?

0 个答案:

没有答案
相关问题