| Thread | Last Post | Replies |
|
| SQL puzzle | 19 Apr 2007 23:06 GMT | 3 |
I have three queries. If the counts returned from the first and second queries are equal then the third query is executed. Is it possible to get this information in a single query without
|
| Trigger problem DB2LUW | 19 Apr 2007 18:57 GMT | 2 |
I have inherited a large application. I have a table which contains a hierarchy, like this CREATE TABLE sample_table( sample_id int NOT NULL
|
| How to DELETE with COMMIT COUNT | 19 Apr 2007 16:17 GMT | 5 |
I figure someone else may have use for this toy, so here goes: Prereq: DB2 V8.1 FP4 CREATE PROCEDURE DELETE_MANY_ROWS (tabschema VARCHAR(128),
|
| nextval for sequence in an insert statement vs nextval in an insert trigger | 19 Apr 2007 13:00 GMT | 1 |
I'm trying to find if there is any performance diference between explicitly using a sequence in the insert statement to generate values for a column and doing this in an insert trigger. I noticed that th eaccess plan for the 2 situations is quite
|
| restrict creating table in other existing schema | 19 Apr 2007 04:04 GMT | 3 |
Suppose I am an admin of a database instance. Now I need to specify that user A has the right to create tables in his own schema, but not anywhere else. In order to let user A create tables, i grant createtab to that user.
|
| ha_db2stop or db2stop? | 18 Apr 2007 22:19 GMT | 1 |
The sentence "If you are an HACMP™ user, you must use the ha_db2stop command to stop DB2 instead of the db2stop command. If you use the db2stop command instead of the ha_db2stop command, you will trigger a failure event.". If I also do HADR with HACMP, should I also use the
|
| DB2 V 9.1: JDBC driver: How to set default schema | 18 Apr 2007 20:05 GMT | 7 |
Using the IBM Universal JDBC (Type 4) driver; Can one specify a default schema as part of the url? Some application servers do not allow sending a default sql command upon connection, so I can't rely on 'set schema xyz', hence the need
|
| DB2 UDB & C runtime environment components | 18 Apr 2007 19:35 GMT | 9 |
I have already checked the URL http://www-306.ibm.com/software/data/db2/9/sysreqs.html. There are no Operating System need to install C rumtime environment components other than AIX before installing DB2 Server product. Is it specific for AIX only?
|
| Need help with a performance of a query. | 18 Apr 2007 17:38 GMT | 6 |
Folks, I am having trouble with a query. DB2 does not use index, it does relation scan of the table. I am running DB2 UDB 8.2 on Fedora Core release 4 (Stentz)
|
| Multiple column updates in a single query | 18 Apr 2007 04:23 GMT | 8 |
DB2 V8.2 on AIX I am looking for an efficient way to update several columns in a table that will have a default change. The problem is the table is large (million records) and there are 1 to 4 columns that might need to be
|
| DB2 Stored Proc help -- Urgent please | 18 Apr 2007 00:03 GMT | 7 |
My environment is DB2v9.1, Windows/AIX and I am trying to compile the stored proc below and I am getting an error, "ERROR [42601] [IBM][DB2/ NT] SQL0104N An unexpected token "WITH" was found following "User_ID = UsrID; ". Expected tokens may include: "SELECT". LINE
|
| Getting values from db2 procedure in a shell script | 17 Apr 2007 22:32 GMT | 1 |
I have the following sql/pl: CREATE PROCEDURE DBSTG.TEST (OUT PRESULT INTEGER )
|
| AFTER INSERT ON TRIGGER | 17 Apr 2007 15:06 GMT | 1 |
I lack knowledge about triggers. I have created trigger on table A Table A -------------------------------------------------
|
| DECODE in DB2 8.1? | 17 Apr 2007 13:25 GMT | 2 |
I come from the oracle world and would use the Oracle 'DECODE' function extensively. Is there any equivalent in db2??? using db2 version 8.1 on win
|
| DB2 SQL PL advice | 17 Apr 2007 13:20 GMT | 5 |
DB2 UDB 8.X on Windows server A couple of questions: 1.) I am trying to develop some DB2 SQL stored procedures. Dev environment at UDB v 8.2,
|