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

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

Android Gson.fromJson error -