Stop posting proper coding in General, you're ruining it. SY, go back to telling us how great you are rather than posting your shoddy code to try and prove it.
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Bob update
Collapse
X
Collapse
-
Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishing -
The best approach to the above is to generate the keys in the ETL tool and then load the data using SQL*Loader. But I'm guessing since you're doing INSERTs that the volumes dont justify a proper ETL tool."A life, Jimmy, you know what that is? It’s the s*** that happens while you’re waiting for moments that never come." -- Lester FreamonComment
-
Only fools and cursors?Originally posted by eek View PostEver heard of triggers?While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'Comment
-
There are easier ways to lose weight than this sort of extreme calorie counting.Originally posted by suityou01 View PostOK so this is the example where the cursor is being used :
The screen in question creates a row in a table called dinner. There is a child table called dinner_item which will hold all of the dinner items.
In the meta data we define for each type of dinner, what the default set of dinner items are.
So for cooked breakfast we have :
Fried tomato
Bacon
Beans
Sausage
Mushrooms
So when we create a dinner row, we want to automajically populate the dinner items from the meta data. So the cursor would open the list of dinner_items from the meta data, and then pop one row in the dinner_item table.
It could be done from the application layer, but this would not only perform better but would be easier to change the stored procedure than rush out a new version of the app.
The stored procedure debate trundles on, but we were forced into using stored procs as Oracle doesn't have an identity field, so we need to use sequences so this is all wrapped up in the insert stored proc, and the new id value returned as an output variable.While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'Comment
-
On a serious note you do realise you can insert multiple rows using a sequence with something like
insert into dinner_items select seq.nextval, data from dinner_items_metadata where dinner_type = 'lardarse deluxe combo'
don't you?While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'Comment
-
Comment
-
Anyone who uses Oracle would never find a women let alone get it up enough to have kids.Originally posted by russell View PostAnyone who still uses Oracle should be taken outside and shot in front of their families.What happens in General, stays in General.You know what they say about assumptions!Comment
-
Why?Originally posted by russell View PostAnyone who still uses Oracle should be taken outside and shot in front of their families.While you're waiting, read the free novel we sent you. It's a Spanish story about a guy named 'Manual.'Comment
-
Probably because it's no faster than the competition, no more reliable than the competition, no more productive than the competion, no more feature rich than the competition, but costs a LOT more than the competition.Originally posted by doodab View PostWhy?
A bit like paying Mercedes money for a Kia.Comment
-
I resemble that remarkOriginally posted by DimPrawn View PostProbably because it's no faster than the competition, no more reliable than the competition, no more productive than the competion, no more feature rich than the competition, but costs a LOT more than the competition.
A bit like paying Mercedes money for a Kia.
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Comment