on 04-15-2019 2:53 PM
Helo experts, I got a SAP HANA DB. I create a column calles Users which got Emails as property
When i run a SQL query like this:
SELECT * FROM "DB_3"."NewsletterDATA.User"
it works. I get the Users together with there Emails. But when i try to filter for Emails like this:
SELECT * FROM "DB_3"."NewsletterDATA.User" WHERE Email = "foo@bar"
then i get an error that Email not a property is.
As you get an error that column Email is not defined, I think that the name has upper and lower case characters. You have to enclose the column name with double quotes, otherwise it is translated to upper case. And of course, like Konrad commented already, you have to enclose the filter value with single quotes instead of double quotes.
SELECT * FROM "DB_3"."NewsletterDATA.User" WHERE "Email" = 'foo@bar'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just check how column Email is defined.
Try SELECT Email FROM "DB_3"."NewsletterDATA.User"
Thanks,
Jothi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
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.