Flex/AIR SQLite: Multiple Inserts, Unknown Number of Rows in 1 SQL Statement -


i creating mobile app in flex/adobe air. using sqlite store , retrieve data. have situation need insert unknown number of rows table. there way single statement in sqlite? know can done using loop in as3, wanted see if it's possible single sql statement. have found references using unions , select, however, examples weren't clear nor sure applicable situation. examples appreciated.

thanks.

you should able like:

insert sometable  values ('column 1 row 1', 'column 2 row 1'), ('column 1 row 2', 'column 2 row 2'), ('column 1 row 3', 'column 2 row 3'); 

you'll still need loop in build sql statement, though.

note there seems some confusion whether syntax supported sqllite.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -