Skip to content

Tag: sql

How to call a complex SQL query in python

I have the following SQL code: This SQL code has been tested and runs perfectly on SQL Server Management Studio. Now I have the following code for python which is to communicate with an MS SQL Server instance: When I run it, I get the following error where it points to the first semicolon in my code. Could yo…

LTRIM RTRIM not working for Chinese string SQL

I have a column named Text which receives from the end user the following string: ‘复合模头滤网 φ245 120目*300目 24×120目 ’ Which includes a weird space, kind of larger than the regular space, at the end. However it has the same ASCII code as the normal space 32. I used this SQL code to trim my string but …