以下のSQLはdb2で問題なく実行されます
with mytable(a,b) as (
values(
(select current timestamp from sysibm.sysdummy1), (select current timestamp from sysibm.sysdummy1))
)
select * from mytable
これを与えると、SQLサーバーで同様のものを実行したい
with mytable(a,b) as (
values(
(select current_timestamp), (select current_timestamp))
)
select * from mytable
以下のエラーが発生します:
エラー: キーワード 'values' 付近の構文が正しくありません。SQLState: S1000 ErrorCode: 156 エラー: ',' 付近の構文が正しくありません。SQLState: 42000 ErrorCode: 102 エラー: ')' 付近の構文が正しくありません。SQLState: 42000 エラーコード: 102
何か案は ?