|
|
Question : coldfusion sql insert help
|
|
How can I make this work without breaking; there are more than 34K records that have to be inserted?
select surveyid, userid from result group by surveyid, userid
insert into americalearns.survey_user (surveyuserid,surveyid,userid) values ('#uuid#',#surveyid#,#userid#)
|
Answer : coldfusion sql insert help
|
|
What database do you use? Do you need it to be a CF uuid?
try this:
insert into americalearns.survey_user (surveyuserid,surveyid,userid) select newID() as new_id, urveyid, userid from result group by surveyid, userid
|
|
|
|
|