Sybase ASE 入門 DB2との比較(SQL)
DB2との比較。徐々に充実させたい。
DB2 | Sybase |
Load | BCP Utilityを使う |
Import | ない。BUP Utility と Merge文とかを組み合わせてどうにかする。 * mergeは不安定なversionがあるので注意 |
Union | 同じ |
exists | 同じ |
fetch first 10 rows only | select top 10 * from test_table |
current date | current_date() |
where (a.id, a.code) in (b.id, b.code) | 不可。書き換える。a.id = b.id and a.code = b.code |
INT('123') | CONVERT(int,'123') |