Hi All,
I am trying to convert one table into .hdbtable.
Below is the SQL code for my table.
CREATE COLUMN TABLE "SCHEMA"."TABLE" (
'FIELD1' VARCHAR(128),
"FIELD2" VARCHAR(64),
"FIELD3" VARCHAR(128)) UNLOAD PRIORITY 5 AUTO MERGE ;
ALTER TABLE "SCHEMA"."TABLE"
WITH PARAMETERS ('CONCAT_ATTRIBUTE'=('EXPRESSION=FIELD4_DATE( now() )',
Now I want to convert the above into .hdbtable
table.schemaName = "SCHEMA";
table.tableType = COLUMNSTORE;
table.columns =
[
{name = "FIELD1"; sqlType = VARCHAR; length = 128;} ,
{name = "FIELD2"; sqlType = VARCHAR; length = 64;} ,
{name = "FIELD3"; sqlType = VARCHAR; length = 128;} ,
{name = "FIELD4_DATE"; sqlType = TIMESTAMP; nullable = true; }
];
Now I want to provide default date to field "FIELD4_DATE".
In SQL we can achieve this by 'ALTER'.
Can you please suggest me how to do in the .hdbtable?
is there any other way to convert the table into .hdbtable? rather than righting code..."table.schemaName = "SCHEMA"; .......]
PS: I have googled and searched in SCN portal. Not able to get any answers. Hence, I have posted.
Thanks in advance.