Declare @Query Var-char(100)
select @Query= 'select coalesce(NULL,"test") as testing'
Exec @Query
错误是
The name 'select coalesce(NULL,"test") as testing' is not valid identifier.
如何解决这个问题?
Declare @Query Var-char(100)
select @Query= 'select coalesce(NULL,"test") as testing'
Exec @Query
错误是
The name 'select coalesce(NULL,"test") as testing' is not valid identifier.
如何解决这个问题?