I have two tables helloand login_table, below, their structure
user_info
some_id | name | address
login_table
id | username | password
some_idand id- auto-increment indices.
Now how can I use the INSERTc operator INNER JOINinSQL
Currently I want to add the data below with the same some_idandid
`name` = John
`address` = wall street
`username` = john123
`password` = passw123
below code shows what i tried so far.
insert into login_table lt
INNER JOIN user_info ui ON ui.some_id = lt.id
(ui.name, ui.address, lt.username, lt.password)
values
('John', 'wall street', 'john123', 'passw123')
And this is not one value, I want to add several values at a time. How can i achieve.
thanks for the help.
Rafee source
share