Dear Mufasa,
I am used to declare a global variable in pl/sql. The problem is that i have to work with an interface (OWB) that generates PL/SQL code, and i really dont know how to work with global variable with that tool! (I dont know if it is possible..) I found nothing on the subject on...
Hi,
I can't use your way tomreid, because the sysdate field will not always be the last, year after year we have to add some fields to the table. I found the solution finally: use a trigger, like this:
BIR means BEFORE INSERT REPLACE.
--D2_BIR_01_TABLE1--
CREATE OR REPLACE TRIGGER...
Dear Gunjan14,
It works with my test tables, i am really happy. I think that your procedure would be very helpful to many programers. We will now test the perforamnce with a big table to see if it takes too much time, and i think that we will use it. Anyway, i will certainly reuse it in a few...
...in the insert statement.. I was wondering if a functionnality exists to insert the default value when taking rows from the staging tables to the production tables, by making a "select *". I think it doesn't exists finally.. i will talk with the DBA about this..
Thanks a lot guys and girls..
My table already have a DEFAULT value.
But with the insert into ... (select * ...), if the field of the source table is null, it inserts the null value. And i want it to insert the default value, because we have to have the EXACT time when the row is inserted.
Dear Santa Mufasa,
I can't do it this way, because the wan't to have the exact time when the row is inserted, date+hour+minute to do some statistics. So i have to insert the default value exactly at the same time than the row. The table will have more than 300 000 rows.
Do you know the way to...
Hi,
I have to make an insert from a table to another, example:
Insert into table1 (select * from table2)
If a field of table2 is empty or NULL, i'd like it to automatically insert the DEFAULT value.
I've tried it, but it doesn't work, the only way it inserts the DEFAULT is when i specify it...
Hi!!
I have this simple problem, but don't know how to resolve it: source table have char type, and target table have a varchar2 type. I don't know how to do the conversion from one type to the other, and the script give me an error because the types are different. I cant change them..
Help !!!
SELECT * FROM A
WHERE Description = 'Small widget'
OR (Description = 'Big Widget' AND Date > '05/05/03')
Not sure.. but i think this should work well..
I really don't know, it is supposed to work, your code is well done.
Do you think it may be your ")" taht is not there on the line of your SUM, and the */ that is still there too??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.