Click here to Skip to main content
15,918,333 members
Home / Discussions / Database
   

Database

 
GeneralSelect query Pin
Anonymous14-Jan-05 12:26
Anonymous14-Jan-05 12:26 
GeneralRe: Select query Pin
-Dr_X-14-Jan-05 13:55
-Dr_X-14-Jan-05 13:55 
GeneralSaving Recordset to a stream Pin
mysorian14-Jan-05 11:14
professionalmysorian14-Jan-05 11:14 
GeneralRe: Saving Recordset to a stream Pin
-Dr_X-14-Jan-05 14:06
-Dr_X-14-Jan-05 14:06 
GeneralRe: Saving Recordset to a stream Pin
mysorian14-Jan-05 18:08
professionalmysorian14-Jan-05 18:08 
GeneralRe: Saving Recordset to a stream Pin
-Dr_X-15-Jan-05 12:50
-Dr_X-15-Jan-05 12:50 
GeneralRe: Saving Recordset to a stream Pin
mysorian15-Jan-05 17:37
professionalmysorian15-Jan-05 17:37 
GeneralSQL-select and insert Pin
BrockVnm14-Jan-05 9:38
BrockVnm14-Jan-05 9:38 
Hey everyone,
I have not been able to figure this out. I have been searching the web to no avail. So here is my situation. I have a table that I want to insert a bunch of data into. The problem is I want to add data from a bunch of tables into it as well as inputing some values. I am putting the query into my code and excuting it that way. Basically here is what I am looking to do:

Insert into combinedTables
select table1.a, table2.a
from table1, table2
where table1.c = table2.c

I also have some variables:
INSERT INTO combinedTable(x)
values("userName")

Is there a way I can do this in one SQL statement?? I hope my question is clear...thanks to all for your help!!!



There are 10 kinds of people in this world. Those who understand binary and those who don't.

We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
GeneralRe: SQL-select and insert Pin
-Dr_X-14-Jan-05 14:17
-Dr_X-14-Jan-05 14:17 
GeneralRe: SQL-select and insert Pin
Anonymous14-Jan-05 15:07
Anonymous14-Jan-05 15:07 
QuestionSqlserver -gui ? Pin
kaiowa5114-Jan-05 8:39
kaiowa5114-Jan-05 8:39 
QuestionDataTable with nested Child Tables?? Pin
work_to_live13-Jan-05 8:09
work_to_live13-Jan-05 8:09 
AnswerRe: DataTable with nested Child Tables?? Pin
Rob Graham13-Jan-05 16:09
Rob Graham13-Jan-05 16:09 
GeneralRe: DataTable with nested Child Tables?? Pin
work_to_live14-Jan-05 4:56
work_to_live14-Jan-05 4:56 
GeneralDatabase schema Pin
webhay13-Jan-05 1:15
webhay13-Jan-05 1:15 
GeneralRe: Database schema Pin
Colin Angus Mackay13-Jan-05 11:46
Colin Angus Mackay13-Jan-05 11:46 
Generali couldn't see Databases in SQL server Pin
BSRK13-Jan-05 0:17
BSRK13-Jan-05 0:17 
GeneralRe: i couldn't see Databases in SQL server Pin
Colin Angus Mackay13-Jan-05 1:02
Colin Angus Mackay13-Jan-05 1:02 
GeneralRe: i couldn't see Databases in SQL server Pin
BSRK13-Jan-05 1:28
BSRK13-Jan-05 1:28 
GeneralRe: i couldn't see Databases in SQL server Pin
Colin Angus Mackay13-Jan-05 2:07
Colin Angus Mackay13-Jan-05 2:07 
Generalwe cannot use MSDE & Enterprise Manager Pin
BSRK13-Jan-05 2:39
BSRK13-Jan-05 2:39 
GeneralRe: we cannot use MSDE & Enterprise Manager Pin
Colin Angus Mackay13-Jan-05 2:48
Colin Angus Mackay13-Jan-05 2:48 
GeneralRe: we cannot use MSDE & Enterprise Manager Pin
Michael P Butler13-Jan-05 8:42
Michael P Butler13-Jan-05 8:42 
GeneralRe: i couldn't see Databases in SQL server Pin
Mike Dimmick14-Jan-05 0:42
Mike Dimmick14-Jan-05 0:42 
QuestionHow To connect to MySql database from JAva Pin
Aakash Jain12-Jan-05 18:28
Aakash Jain12-Jan-05 18:28 

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.