Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

HANA table field length issues

$
0
0

Hi Experts

 

I'm trying to create a table (*.hdbtable)


table.schemaName = "NEO_EZPCFVLMDTZUPGEXXXX";

table.tableType = COLUMNSTORE; // ROWSTORE is an alternative value

table.columns =

[

    {name = "id";  sqlType = NVARCHAR; nullable = false;},

    {name = "firstName";  sqlType = NVARCHAR;},

    {name = "lastName";  sqlType = NVARCHAR;},

    {name = "headline";  sqlType = NVARCHAR;},

    {name = "industry";  sqlType = NVARCHAR;},

    {name = "numConnections";  sqlType = DECIMAL;},

    {name = "picURL";  sqlType = NVARCHAR;  },

    {name = "profileURL";  sqlType = NVARCHAR;}

 

 

 

];

table.primaryKey.pkcolumns = ["id"];

When i try to import data into it.It shows field length is 1 and cannot import any data into it.

 

I'm not giving the field length cause the field lengths are dynamic each time.

 

I also want to know what is the diffrence between *.hdbtable creation and table creation directly under Systems Tab.


Viewing all articles
Browse latest Browse all 6745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>