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

Re: hdbsql fails when used with file but works interactively for same commands

$
0
0

Hi Dinesh,

there are subtle differences between using hdbsql from the console or from a file input. In your case, your file might be e.g.

 

$ cat p3.sql
CREATE PROCEDURE proc2() LANGUAGE SQLSCRIPT AS BEGIN SELECT 1 as "A", 22 AS "B" FROM dummy; END//
CALL proc2()

 

and you would execute it with

 

hdbsql -c // -I p3.sql

 

The catch is in ';' being either a command separator for a stored procedure or for the command input.

 

-- Micha


Viewing all articles
Browse latest Browse all 9165

Trending Articles