I tried to create a table with postgresql query:
CREATE TABLE customer_account(ID_account integer primary key, customer_name (lastname) text);
but it gives an error message:
ERROR: syntax error at or near "("
LINE 5: customer_name (lastname) text,
Probably the problem comes from the bracket, and I already tried like
CREATE TABLE customer_account("ID_account" primary key, "customer_name (lastname)" text);
But it also gave me a similar error message.
How to correct the query? I really need to use bracket.