SBM ModScript Reference → Programming SBM ModScript → Constants → SQLColumnDefOutputHint
Global const object for SQL column definitions, used in SQLColumnDef.
SBM ModScript version: 11.4.
var out = []; // creates an empty Vector Shell.Db().ReadDynaSQL( "select TS_ID,TS_NAME,TS_LASTLOGINDATE from TS_USERS where TS_STATUS=? order by TS_NAME", [ SQLColumnDef(DBTypeConstants.INTEGER,"TS_ID"), SQLColumnDef(DBTypeConstants.VARCHAR,"TS_NAME"), SQLColumnDef(DBTypeConstants.BIGINT,"TS_LASTLOGINDATE", SQLColumnDefOutputHint.TimeT) ], out, [Pair(DBTypeConstants.INTEGER, 0)] ); for ( row : out ){ Ext.WriteStream( "${row[0]}\t${row[1]}\t${row[2].date}" ); }
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.