Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: ODBC Timestamp Data Types

$
0
0

Hi Krishna,

 

sure, this is the SQLScript of the table I set up for testing.

The columns: CreatedAt, CreatedTime and CreatedTimesstamp have different time and date types but will be displayed as "text" columns with 255 characters.

 

 

table.schemaName = "XXXX";

 

table.tableType = COLUMNSTORE;

 

table.description = "TEST table";

 

table.columns = [

 

{name = "OrderID"; sqlType = NVARCHAR; nullable = false; length = 10; },

 

{name = "CreatedAt"; sqlType = DATE; nullable = true;},

 

{name = "CreatedTime"; sqlType = TIME; nullable = true;},

 

{name = "CreatedTimeStamp"; sqlType = TIMESTAMP; nullable = true;},

 

{name = "Currency"; sqlType = NVARCHAR; nullable = false; length = 5;},

 

{name = "GrossAmount"; sqlType = DECIMAL; nullable = false;

 

precision = 15; scale = 2; defaultValue = "0";}

 

];

 

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

 

 

 

Thanks

Daniel


Viewing all articles
Browse latest Browse all 8968

Trending Articles



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