Ask coding questions

← Back to all posts
Executing Select Lines in SQLite
marshriner (1)

Hi, is there a way to execute only selected rows in the main.sql, besides commenting the ones I want to ignore?

Answered by Coder100 (18207) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (18207)

Sorry, it's not possible. All lines are executed no matter what, usually there aren't ways to do this in any language other than commenting it out and SQLite is not exception...

marshriner (1)

@Coder100 Ah ok, thanks! I asked because I was watching a video where the guy was using SQLiteStudio, and he was executing specific statements he selected.

Coder100 (18207)

@marshriner ohh, that's a debugging feature

Coder100 (18207)

we don't have that here on repl.it @marshriner

marshriner (1)

@Coder100 Thanks for the reply. Would be a nice feature in the future in my opinion

Coder100 (18207)

ye, post to feedback
Also, mark as correct answer?
@marshriner