You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
%sql DROP INDEX index_name;
%sql CREATE INDEX index_name ON table_name(column1, column2);
except:
%sql CREATE INDEX index_name ON table_name(column1, column2);
But, below statement fails with syntax error
try:
%%sql
DROP INDEX index_name;
CREATE INDEX index_name ON table_name(column1, column2);
except:
CREATE INDEX index_name ON table_name(column1, column2);`
Below statement fails too with error as shown below
%%sql
try:
DROP INDEX index_name;
CREATE INDEX index_name ON table_name(column1, column2);
except:
CREATE INDEX index_name ON table_name(column1, column2);
The text was updated successfully, but these errors were encountered:
pmfischer
pushed a commit
to pmfischer/ipython-sql
that referenced
this issue
Sep 8, 2023
How can I handle exceptions under %%sql ?
Below statement works:
But, below statement fails with syntax error
Below statement fails too with error as shown below
The text was updated successfully, but these errors were encountered: