Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

IF NOT EXISTS

$
0
0

I can't find a way to convert an IF exists from microsoft sql to hana.

With mssql, IF can be used to execute a sql command only if the condition is true.

Someone have an idea on how to do this ?

 

code:

if not exists(  select * from SYS.TABLE_COLUMNS where Schema_Name = CURRENT_SCHEMA AND TABLE_NAME = 'TableName' AND COLUMN_NAME = 'Column'      )

alter table TableName

...


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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