简体   繁体   中英

Is it possible to pick data from SQL in a Lua code?

I'm coding with Solar2d in Lua and I wanted to pick data from an SQL table.
So I was thinking to use the sqlite3 plugin, but it's unclear how to use it.

Yes, Solar2D has built-in SQLite library. Check the documentation here . To pick data use SELECT with db:nrows(sqlcommand)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM