DARK__FOXX
Member
- Joined
- Sep 2, 2020
- Messages
- 16
- Programming Experience
- Beginner
Hi,
I have this new empty table that have eight field called Table-X and an existing table called Table_Y with different fields .
In the store procedure I am only interested three fields that I have to insert into the table ,but two fields are the fields of table_Y
My question is how do I insert these fields into the new empty table that are also different name fields?
This is my first approach:
I have this new empty table that have eight field called Table-X and an existing table called Table_Y with different fields .
In the store procedure I am only interested three fields that I have to insert into the table ,but two fields are the fields of table_Y
My question is how do I insert these fields into the new empty table that are also different name fields?
This is my first approach:
VB.NET:
@ID_CUSTOMER int,
@COMPANY_NAME varchar(50),
@EXP_DATE date,
AS
BEGIN
INSERT INTO TABLE_X
(
ID_CUSTOMER,
COMPANY_NAME,
EXP_DATE,
)
//add SELECT here?
VALUES(
@ID_CUSTOMER,
@COMPANY_NAME,
@EXP_DATE,
)
END