Hi
I have table USERS
USERS
userid
username
I want to fetch information from this table, and insert it into another table called BILLING
BILLING
billid (auto-increment)
billnote
userid
username
I can insert the user information with this SQL:
insert into billing (userid, username)
select (userid, username FROM USERS);
But how can i add information for the additional field "billnote"?
I want to add note "This bill needs to invoice next month" into "billnote" field. What is the SQL syntax?
I have table USERS
USERS
userid
username
I want to fetch information from this table, and insert it into another table called BILLING
BILLING
billid (auto-increment)
billnote
userid
username
I can insert the user information with this SQL:
insert into billing (userid, username)
select (userid, username FROM USERS);
But how can i add information for the additional field "billnote"?
I want to add note "This bill needs to invoice next month" into "billnote" field. What is the SQL syntax?