infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
Sqlite table question
Mike Campbell
We have Cloverleaf 5.7 running on AIX.
I'm trying to create a simple 2 column table via the command line.
I create the table, create the columns with definitions, and insert a couple of rows. When I query the table, all looks good.
I exit sqlite. When I restart a session, the table is not there!
So, what step am I missing??
create table main.FNB_MRN (fnb_cust_num varchar(15), nmh_mrn_num varchar(9));
sqlite> insert into main.FNB_MRN ('1234567','876543');
sqlite> insert into main.FNB_MRN values ('2345678','987654');
sqlite> select * from main.FNB_MRN;
1234567|876543
2345678|987654
...after I restart an sqlite session:
select * from main.FNB_MRN;
SQL error: no such table: main.FNB_MRN
:?:
Find more posts tagged with
Clovertech
Comments
John Mercogliano
Mike,
When you start sqlite are you starting it up with the database name as an argument? Being you appear to want you database to be called main you should be starting it up as
sqlite3 main
If you have not been passing a name on the command line then a temporary database is getting created and deleted when you exit sqlite.
Mike Campbell
Thanks John.
I knew it had to be something simple. I wasn't aware of qualifying the initial connection with the 'main'.
Its working as expected now.