1
SQL毫無問題運行在DB2的SQL Server下面
with mytable(a,b) as (
values(
(select current timestamp from sysibm.sysdummy1), (select current timestamp from sysibm.sysdummy1))
)
select * from mytable
我想運行在SQL Server類似的東西,當我在下面這個
with mytable(a,b) as (
values(
(select current_timestamp), (select current_timestamp))
)
select * from mytable
錯誤提出:
Error: Incorrect syntax near the keyword 'values'. SQLState: S1000 ErrorCode: 156 Error: Incorrect syntax near ','. SQLState: 42000 ErrorCode: 102 Error: Incorrect syntax near ')'. SQLState: 42000 ErrorCode: 102
有什麼想法嗎?