Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将以下命令“翻译”为要在过程中使用的动态 SQL:
SELECT *, 'IDS' AS SYSID FROM MODE_TEST.USR02
有人可以帮助解决这个问题吗?我正面临“IDS”的问题。
谢谢,
问候,
你可以像下面这样使用:
do begin declare str nvarchar(1000); str='SELECT *,''IDS'' AS "SIYSID" FROM MODE_TEST.USR02'; execute immediate :str; end;