Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on 

SQLite question

Select *  seems to hang and bring up an odd cursor, which locks me out.

User generated image
I was trying to create a table, then verify the table existed by showing me a RowCount of 0.

CREATE TABLE IF NOT EXISTS ContactStatus (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    status TEXT NOT NULL,
    description TEXT NOT NULL
);

INSERT INTO ContactStatus (status, description) VALUES ('Active', ‘The Contact has been Activated.');
INSERT INTO ContactStatus (status, description) VALUES ('Inactive', 'The Contact is no longer Activate.');
INSERT INTO ContactStatus (status, description) VALUES ('Disabled', 'The Contact has been Disabled.');
INSERT INTO ContactStatus (status, description) VALUES ('Pending', 'The Contact has not been Activated.');

Is there anything clearly wrong with this SQLite syntax?

What does that cursor expect from me??

Thanks
SQLDatabasesMicrosoft SQL ServerMySQL ServerMicrosoft SQL Server 2005

Avatar of undefined
Last Comment
Cyril Joudieh
SOLUTION
Avatar of Bill Bach
Bill Bach
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
ASKER CERTIFIED SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of curiouswebster

ASKER

Thanks!

I did not have a clue!

But when there is some other error, I get totally stuck. Is there a keystroke (Mac Terminal) where I can abort the command? Otherwise, I need to shut Terminal, and lose any unsaved changes.

Thanks.

SOLUTION
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
I surely miss FoxPro days.
When there is a semicolon the interpreter expects to have another line. So when it is not there it takes the line as complete. I don't know why they didn't keep this logic in MySQL, and SQLLite.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo