on 08-09-2012 12:04 PM
Hi,
I am working on a maxdb database installed on a linux machine. I need to check if the given index exists. For that reasons, I am executing the sql statement:
select * from domain.indexes where indexname='index1' and it says "no result"
but I know it exists from the statement select * from domain.indexes: it is visible in the result.
What might be the reason?
Thank you very much in advance,
Hi,
try indexname in upper case.
Regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Please review two documents:
http://maxdb.sap.com/doc/7_8/45/4f0f424e5108d2e10000000a11466f/content.htm
"A column name (column_name) identifies a column."
http://maxdb.sap.com/doc/7_8/45/45dcf3ca6c5b41e10000000a1553f6/content.htm
About Identifier (identifier) type.
It's NOT silly. As you could use upper and low case letters for the column name,
the correct statement is :
select * from indexes where INDEXNAME='index1'
And you could run:
select * from columns where TABLENAME = 'INDEXES'
and see the names of columns in this table.
Regards, Natalia Khlopina
User | Count |
---|---|
93 | |
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.