ipython-sql icon indicating copy to clipboard operation
ipython-sql copied to clipboard

%%sql vs %sql

Open techtonik opened this issue 5 years ago • 1 comments

Excuse me for probably an obvious question, but still I have to ask.

What is the difference between %sql and %%sql commands?

techtonik avatar Jun 30 '20 18:06 techtonik

%sql is line magic. You must finish your statement in this line. %%sql is cell magic. Your query can have multiple lines.

EminUZUN avatar Jul 17 '20 08:07 EminUZUN