About 53,400 results
Open links in new tab
  1. sql - DB2 Date format - Stack Overflow

    SELECT VARCHAR_FORMAT(CURRENT TIMESTAMP, 'YYYYMMDD') FROM SYSIBM.SYSDUMMY1 Should work on both Mainframe and Linux/Unix/Windows DB2. Info …

  2. java - DB2 SQL Error: SQLCODE=-117, SQLSTATE=42802, …

    DB2 SQL Error: SQLCODE=-117, SQLSTATE=42802, SQLERRMC=null, DRIVER=3.6in8.61 Obviously, I'd like it to insert all three columns without throwing a SQL Exception.

  3. DB2 java Stored Procedure call return error SQLCODE=-440, …

    I am doing a simple stored procedure call to DB2. While it calls the stored procedure, it always returns this error: DB2 SQL Error: SQLCODE=-440, SQLSTATE=42884, …

  4. SQL DB2 - conditional logic in WHERE clause - Stack Overflow

    SQL DB2 - conditional logic in WHERE clause Asked 14 years, 2 months ago Modified 7 years, 9 months ago Viewed 27k times

  5. sql - If-else statement in DB2/400 - Stack Overflow

    I am trying to run an SQL that contains if-else statement in AS400 but it doesn't work. I am creating a View using i Series Navigator in order to run it. SELECT IF FIELD1 IS NOT NULL …

  6. sql - db2: update multiple rows and field with a select on a …

    db2: update multiple rows and field with a select on a different table Asked 13 years, 11 months ago Modified 6 years ago Viewed 101k times

  7. sql - db2 SQLCODE -668 when inserting - Stack Overflow

    Message: Operation not allowed for reason code "7" on table "ELSAG.ICGR1106".. SQLCODE=-668, SQLSTATE=57016, DRIVER=3.50.152,... when I googled it, I found that the previous …

  8. null - IsNull function in DB2 SQL? - Stack Overflow

    5 In DB2 there is a function NVL (field, value if null). Example: SELECT ID, NVL (NAME, "Internal) AS NAME, NVL (PRICE,0) AS PRICE FROM PRODUCT WITH UR;

  9. sql - DB2 SQLCODE = -420, ERROR when comparing smallint …

    DB2 SQLCODE = -420, ERROR when comparing smallint fields with nulls Asked 10 years, 10 months ago Modified 10 years, 10 months ago Viewed 26k times

  10. sql - DB2: Won't Allow "NULL" column? - Stack Overflow

    For Db2 LUW, since version 9.7, you can (if you like) use the NULL value without explicitly casting it to a particular data type. NULL on it's own will be implicitly cast to VARCHAR(1).