I am not being able to perform select query on a subset of columns of a database in IBM DB2.
select * from user
This works. But
select username from user
I am not being able to perform select query on a subset of columns of a database in IBM DB2.
select * from user
This works. But
select username from user
username
is a reserved word. The "proper" solution would probably be to have a column name that isn't a reserved word, such asuser_name
. If changing the column name isn't an option, you could use double-quotes ("
) to escape it: