1 == Syntax differences between other databases and IBM DB2 ==
2 {| border cellspacing=0 cellpadding=4
6 |SELECT 1 FROM $table LIMIT 1
7 |SELECT COUNT(*) FROM SYSIBM.SYSTABLES ST
8 WHERE ST.NAME = '$table' AND ST.CREATOR = '$schema'
10 |MySQL code tries to read one row and interprets lack of error as proof of existence.
11 |DB2 code counts the number of TABLES of that name in the database. There ought to be 1 for it to exist.
25 |DEFAULT nextval('some_kind_of_sequence'),
26 |GENERATED ALWAYS AS IDENTITY (START WITH 0, INCREMENT BY 1),
32 |FETCH FIRST 10 ROWS ONLY
35 |ROLLBACK TO SAVEPOINT
41 *[http://ca.php.net/manual/en/function.db2-connect.php PHP Manual for DB2 functions]