Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ARWinner

    Trigger start/stop via ODBC

    You cannot execute a trigger, from ODBC or SQL. They are executed automatically by DB2 whenever an update, insert, or delete is performed (depends on the type of trigger). You can remove *drop) the trigger with the following SQL: DROP TRIGGER myTrigger; HTH Andy
  2. ARWinner

    Loops in Triggers

    What you need is to do the query recursively. There is a cookbook for DB2 located at: http://ourworld.compuserve.com/homepages/Graeme_Birchall/HTM_COOK.HTM that has how to do recursion. HTH Andy
  3. ARWinner

    how to change column name in db2

    it is NOT possible to change anything about a column except to increase the size of a VARHAR. You have two alternatives: 1) create a view the way you want the table to look. 2) export the data, drop the table, recreate it, import the data HTH Andy
  4. ARWinner

    HOW TO RETRIEVE TIMESTAMP

    I believe you want: Select CURRENT TIMESTAMP from sysibm.sysdummy1 Andy
  5. ARWinner

    Date Differences

    Select days(date1) - days(date2) as num_days from .... HTH Andy
  6. ARWinner

    Schemas?

    select schemaname from syscat.schemata Andy
  7. ARWinner

    RedHat 9.0 and DB2 V8.1

    Check out: http://www-3.ibm.com/software/data/db2/linux/validate/ It will let you know what versions of Linux are supported. Andy
  8. ARWinner

    EXPORT in Stored Procedure

    Sul, I do not think it can be done. EXPORT is a DB2 command and SP only allow SQL statements. Andy
  9. ARWinner

    Month relative

    Alec, How about: Select * from mytable where month(mydate) = month(current date - 1 MONTH) HTH Andy
  10. ARWinner

    SQL for converting a CHAR(15) field

    Yes, I believe it can be done. Look at functions: TRANSLATE, POSSTR, RTRIM, LTRIM, SUBSTR Andy
  11. ARWinner

    how to call db2 store procedure in trigger / UDF?

    I suggest you read the manual to see just exactly what you can do in a trigger or a udf. Look in the SQL Reference manual on CREATE TRIGGER and CREATE FUNCTION. Andy
  12. ARWinner

    how to call db2 store procedure in trigger / UDF?

    1) not allowed 2) not allowed Sorry to not be bearer of good news. Andy

Part and Inventory Search

Back
Top