表格中的数据如下:
SessionID
S1
S2
S3
i 在另一表2中有以下数据:
EmployeeID | Session
1 | NULL
2 | NULL
3 | NULL
What i would like to do is update/Insert each row example
UPDATE table2 SET Session= (SELECT SessionID FROM TABLE1)
INSERT INTO( COPY each row and insert 2nd row session id from table1)
The Expected Result: TABLE2
EmployeeID | Session
1 | S1
2 | S1
3 | S1
1 | S2
2 | S2
3 | S2
1 | S3
2 | S3
3 | S3
任何洞察都会有所帮助
谢谢