LiteDB.Studio icon indicating copy to clipboard operation
LiteDB.Studio copied to clipboard

Create table

Open gmgunderground opened this issue 5 years ago • 3 comments

Hi, how to create a table in LightDB Studio? CREATE Table doesn't work. What are the SQL commands supported?

Best regards GMG

gmgunderground avatar Jan 15 '20 11:01 gmgunderground

Hi @gmgunderground, there is no create table. You can insert data into a new collection that will auto create this collection. Use:

INSERT INTO mycoll VALUES {_id:1, name: 'John'};

-- with auto-id int
INSERT INTO mycoll:INT VALUES {name:'John'}, {name:'Carlos'}

I'm working on LiteDB SQL documentation

mbdavid avatar Jan 15 '20 12:01 mbdavid

Very good! It's working. Thanks

gmgunderground avatar Jan 15 '20 20:01 gmgunderground

I love this tool. I would like to see more documentation on script like mentioned above.

icodeintx avatar Jul 01 '22 00:07 icodeintx