Click here to Skip to main content
15,887,262 members
Home / Discussions / Database
   

Database

 
GeneralTrigger for execute exe When inserted a receode to table Pin
hiran12310-Jul-12 23:09
hiran12310-Jul-12 23:09 
AnswerRe: Trigger for execute exe When inserted a receode to table Pin
Mycroft Holmes11-Jul-12 1:07
professionalMycroft Holmes11-Jul-12 1:07 
AnswerRe: Trigger for execute exe When inserted a receode to table Pin
hiran12311-Jul-12 16:38
hiran12311-Jul-12 16:38 
GeneralRe: Trigger for execute exe When inserted a receode to table Pin
Mycroft Holmes11-Jul-12 17:57
professionalMycroft Holmes11-Jul-12 17:57 
RantParameter Sniffing Pin
Mycroft Holmes10-Jul-12 15:11
professionalMycroft Holmes10-Jul-12 15:11 
QuestionOracle SQL Developer Pin
vanikanc10-Jul-12 9:42
vanikanc10-Jul-12 9:42 
AnswerRe: Oracle SQL Developer Pin
Michael Potter10-Jul-12 11:56
Michael Potter10-Jul-12 11:56 
AnswerRe: Oracle SQL Developer Pin
David Mujica11-Jul-12 2:39
David Mujica11-Jul-12 2:39 
I bet you are building your query like this ...

SQL
select xx from myTable where ID in (val1,val2,val3)


The problem is that Oracle has a limit of 1000 values in their "in" clause. For example you can not have val1,val2,...val1001, Oracle will throw an error.

You need to restructure your "where" clause.

A possible solution would be to create a temp table and insert those selected values into the table, then do a join to the temp table.

Somthing just doesn't sound right if you are selecting 4 million rows, but you haven't give much information on the problem. Maybe more info will lead to a better solution.

Good luck. Thumbs Up | :thumbsup:
GeneralRe: Oracle SQL Developer Pin
vanikanc11-Jul-12 3:01
vanikanc11-Jul-12 3:01 
GeneralRe: Oracle SQL Developer Pin
David Mujica11-Jul-12 3:09
David Mujica11-Jul-12 3:09 
GeneralIntroduce integerity in the database Pin
sharp_k9-Jul-12 4:08
sharp_k9-Jul-12 4:08 
GeneralRe: Introduce integerity in the database Pin
Wayne Gaylard9-Jul-12 4:24
professionalWayne Gaylard9-Jul-12 4:24 
GeneralRe: Introduce integerity in the database Pin
sharp_k9-Jul-12 4:47
sharp_k9-Jul-12 4:47 
GeneralRe: Introduce integerity in the database Pin
jschell9-Jul-12 12:26
jschell9-Jul-12 12:26 
AnswerRe: Introduce integerity in the database Pin
Jörgen Andersson9-Jul-12 19:52
professionalJörgen Andersson9-Jul-12 19:52 
GeneralRe: Introduce integerity in the database Pin
R. Giskard Reventlov9-Jul-12 5:17
R. Giskard Reventlov9-Jul-12 5:17 
QuestionRe: Introduce integerity in the database Pin
Eddy Vluggen9-Jul-12 12:52
professionalEddy Vluggen9-Jul-12 12:52 
AnswerRe: Introduce integerity in the database Pin
R. Giskard Reventlov10-Jul-12 12:05
R. Giskard Reventlov10-Jul-12 12:05 
GeneralRe: Introduce integerity in the database Pin
PIEBALDconsult9-Jul-12 10:54
mvePIEBALDconsult9-Jul-12 10:54 
AnswerRe: Introduce integerity in the database Pin
Eddy Vluggen9-Jul-12 12:51
professionalEddy Vluggen9-Jul-12 12:51 
Questionwhy (Object reference not set to an instance of an object)?! Pin
Jassim Rahma8-Jul-12 21:48
Jassim Rahma8-Jul-12 21:48 
AnswerRe: why (Object reference not set to an instance of an object)?! Pin
Simon_Whale9-Jul-12 4:24
Simon_Whale9-Jul-12 4:24 
AnswerRe: why (Object reference not set to an instance of an object)?! Pin
Luc Pattyn9-Jul-12 13:06
sitebuilderLuc Pattyn9-Jul-12 13:06 
Questionupdate table structures from another server Pin
Jassim Rahma8-Jul-12 20:37
Jassim Rahma8-Jul-12 20:37 
AnswerRe: update table structures from another server Pin
Wayne Gaylard8-Jul-12 21:27
professionalWayne Gaylard8-Jul-12 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.