Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%sql charindex issue #176

Open
mlkshclk opened this issue Jul 17, 2020 · 1 comment
Open

%sql charindex issue #176

mlkshclk opened this issue Jul 17, 2020 · 1 comment

Comments

@mlkshclk
Copy link

When trying to find index of a space between words in a string, CHARINDEX returns wrong result with '%sql' command, but yields the correct result with '%%sql' command:

%sql SELECT CHARINDEX(' ', 'AAA BBB) returns 1.

%%sql
SELECT CHARINDEX(' ', 'AAA BBB)
returns 4.

charindex

OS: Ubuntu Server 18.04
JupyterLab version: 2.1.5

@EminUZUN
Copy link

Screenshot_4

sql commands produced by magics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants