Click here to Skip to main content
15,921,113 members
Home / Discussions / Database
   

Database

 
AnswerRe: numeric data type value Pin
Mike Dimmick14-Jul-06 0:27
Mike Dimmick14-Jul-06 0:27 
GeneralRe: numeric data type value Pin
For_IT14-Jul-06 0:55
For_IT14-Jul-06 0:55 
GeneralRe: numeric data type value Pin
Mairaaj Khan14-Jul-06 2:02
professionalMairaaj Khan14-Jul-06 2:02 
GeneralRe: numeric data type value Pin
For_IT14-Jul-06 3:11
For_IT14-Jul-06 3:11 
AnswerRe: numeric data type value Pin
Heinz_15-Jul-06 14:27
Heinz_15-Jul-06 14:27 
Questionwhere not exists problem! Pin
richiemac13-Jul-06 23:19
richiemac13-Jul-06 23:19 
AnswerRe: where not exists problem! Pin
Mike Dimmick14-Jul-06 0:23
Mike Dimmick14-Jul-06 0:23 
AnswerRe: where not exists problem! Pin
Eric Dahlvang14-Jul-06 3:21
Eric Dahlvang14-Jul-06 3:21 
The syntax is INSERT INTO table1 (field1,field2,field3) SELECT x,y,z FROM table2 WHERE fieldwhatever = 'whatever'

You need the same # of fields int he insert as what you select.

I don't know what the question marks in your sql are about, but my guess is that they are causing problems.

You shouldn't use the word values, but have the field names in the insert into.

Also, is it really your intention to insert duplicate rows into the table? Why do you have an exists clause, and you are selecting from the same table?

insert into mytable (default,number,text,date) select default,number,text,date from mytable where int_field = '20'

If you post your actual code...it would be easier to help you.

--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters

AnswerThanks for the help guys Pin
richiemac14-Jul-06 3:35
richiemac14-Jul-06 3:35 
GeneralRe: Thanks for the help guys Pin
Eric Dahlvang14-Jul-06 5:50
Eric Dahlvang14-Jul-06 5:50 
AnswerRe: where not exists problem! Pin
Eric Dahlvang14-Jul-06 7:23
Eric Dahlvang14-Jul-06 7:23 
GeneralRe: where not exists problem! Pin
richiemac16-Jul-06 22:18
richiemac16-Jul-06 22:18 
Questionmaintaining the data type Pin
Jerry Hammond13-Jul-06 20:20
Jerry Hammond13-Jul-06 20:20 
AnswerRe: maintaining the data type Pin
Mike Dimmick14-Jul-06 0:24
Mike Dimmick14-Jul-06 0:24 
GeneralRe: maintaining the data type Pin
Jerry Hammond14-Jul-06 5:24
Jerry Hammond14-Jul-06 5:24 
QuestionMatch Case Comparision Pin
sumit siddheshwar13-Jul-06 18:23
sumit siddheshwar13-Jul-06 18:23 
AnswerRe: Match Case Comparision Pin
Edbert P13-Jul-06 19:26
Edbert P13-Jul-06 19:26 
GeneralRe: Match Case Comparision Pin
sumit siddheshwar13-Jul-06 20:07
sumit siddheshwar13-Jul-06 20:07 
AnswerRe: Match Case Comparision Pin
Mairaaj Khan14-Jul-06 3:06
professionalMairaaj Khan14-Jul-06 3:06 
QuestionTo many SQL Data Sources? Pin
Drathmar13-Jul-06 17:06
Drathmar13-Jul-06 17:06 
AnswerRe: To many SQL Data Sources? Pin
Colin Angus Mackay13-Jul-06 22:00
Colin Angus Mackay13-Jul-06 22:00 
AnswerRe: To many SQL Data Sources? Pin
mysorian15-Jul-06 4:47
professionalmysorian15-Jul-06 4:47 
QuestionA simple query :( [modified] Pin
xoxoxoxoxoxox13-Jul-06 16:35
xoxoxoxoxoxox13-Jul-06 16:35 
AnswerRe: A simple query :( Pin
Andrew Bleakley13-Jul-06 17:51
Andrew Bleakley13-Jul-06 17:51 
GeneralRe: A simple query :( Pin
xoxoxoxoxoxox13-Jul-06 17:58
xoxoxoxoxoxox13-Jul-06 17:58 

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.