Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: How to select only visible columns from a view?

$
0
0

It would also help if there's a way to get all the columns from a view. If I can do that I can remove the hidden columns by the name and create a custom select using only the columns I need instead of *.

 

Just to explain a little bit more: I have a generic select util that accepts the view name and other params that I reuse every time I need to get the data from a view:

 

function executeQueryDelta(pConnection, pViewName, pFirst, pSize, pDeltaBegin, pDeltaEnd) {

 

  var comando = 'SELECT * FROM "TEST"."' + pViewName +

  '" WHERE "LAST_UPDATE" BETWEEN \'' + pDeltaBegin + "' and \'" + pDeltaEnd +

  '\'LIMIT ' + pSize + ' OFFSET ' + pFirst;

 

  var qryVista = pConnection.prepareStatement(comando);

 

  return qryVista.executeQuery();

}

 

So I not always know the columns I'll have in a view, nor what columns are hidden.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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