Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is there any way in SQLite to have the execution of multiple statements controlled by a conditional expression?

What I have tried:

I have tried using the CASE statement in various forms but can't get the syntax right. My latest attempt:

CASE @create_data WHEN TRUE THEN

BEGIN

-- Multiple SQL statements here...

COMMIT

END
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900