sqlite - Inserting row into SQL table with some predefined values, and some from another table -


i trying insert row table called "all_games" using sqlite. have values "game" , "money" game integer , money string, middle value "players" value don't have, want table contains it.

this sql query using:

insert all_games (game, ... , money)     select (12, players, \'100, 200\') games id=2 

just clarify, "12" , "100, 200" represent values have, want players table.

thanks in advance!

i believe need remove second set of parentheses.

insert all_games (game, players , money)     select 12, players, '100, 200' games id=2 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -