Created
May 8, 2012 15:13
-
-
Save ricardoalcocer/2636127 to your computer and use it in GitHub Desktop.
Simple Titanium SQLite sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ti.Database.install('/dbname.sqlite','dbname'); | |
var mydb = Ti.Database.open('dbname'); | |
var sql="SELECT ..... "; | |
var RS=mydb.execute(sql); | |
var data=''; | |
while(RS.isValidRow()){ | |
data += RS.fieldByName('fieldname') + ' - '; | |
RS.next(); | |
} | |
RS.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment