T
The Flash
Say I have two tables in a DB called TABLE1, and TABLE2.
TABLE1
[IDNUMBER] [FIRSTNAME]
1 Ryan
2 Jennifer
3 Monica
TABLE2
[IDNUMBER] [LASTNAME]
1 Johnson
2 Snipes
3 Smith
My question is would I be able to use SQL in code to Edit, Delete or Insert
data to both tables in one string rather than one table at a time?
For instance what if I want to change both tables with a [IDNUMBER] = 2 to a
[IDNUMBER] = 4, OR change the [LASTNAME] and [FIRSTNAME] records which have a
[IDNUMBER] = 2 to "Graduated" OR Delete those instances where they equal
that criteria ([IDNUMBER] = 2) all together.
Any help or references are much appreciated!
TABLE1
[IDNUMBER] [FIRSTNAME]
1 Ryan
2 Jennifer
3 Monica
TABLE2
[IDNUMBER] [LASTNAME]
1 Johnson
2 Snipes
3 Smith
My question is would I be able to use SQL in code to Edit, Delete or Insert
data to both tables in one string rather than one table at a time?
For instance what if I want to change both tables with a [IDNUMBER] = 2 to a
[IDNUMBER] = 4, OR change the [LASTNAME] and [FIRSTNAME] records which have a
[IDNUMBER] = 2 to "Graduated" OR Delete those instances where they equal
that criteria ([IDNUMBER] = 2) all together.
Any help or references are much appreciated!