I have two tables hello
and login_table
and below is their structure
user_info
-------
some_id | name | address
login_table
-------
id | username | password
some_id
and id
are autoincrement indexes.
Now how can i use INSERT
statement with INNER JOIN
in SQL
at present, i want add below data with same some_id
and id
`name` = John
`address` = wall street
`username` = john123
`password` = passw123
below code shows, what i have 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 the one value, i want to add more than one value at a time.. how can i achieve.
thanks for help.