on 03-30-2017 6:43 AM
Hello Experts,
Please let me know how to perform a SQL query to find out invalid characters in a table column.
SELECT * FROM TABLE WHERE FIELD LIKE '%[^A-Za-z0-9]%'
Something like above code will work in normal SQL engines but not in HANA.
Are there any alternatives for [] defining range while doing the pattern search.
And if any alternatives works for NCLOB data type columns.
Thanks
No, something like this wouldn't work with "normal" SQL engines, because the LIKE operator does not support regular expressions in the SQL standard.
What you can do, however, is to use the HANA SQL documentation and check for the LIKE_REGEXPR() function ( http://help-legacy.sap.com/saphelp_hanaplatform/helpdata/en/b4/0d483dd34d47aa9cc89b4d8a6e617e/conten... )
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest you look into this https://blogs.sap.com/2014/04/08/text-analysis-with-sap-hana/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Lars. That should work 🙂
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.