How do I bypass the typing of `GO` in `sqlcmd`? sqlcmd has this most annoying this of having to type GO after every command, how can I get around this?

SELECT 1 AS "foo"
2&gt; GO
foo        
-----------
          1
(1 rows affected)


Can I make this like psql...

test=# SELECT 1;
 ?column? 
----------
        1
(1 row)
Reference: https://docs.microsoft.com/en-us/sql/tools/sqlcmd-utility

With -q you can execute multiple query, as you do not get your prompt back until you hit ctrl+c.


  -q" cmdline query " Executes a query when sqlcmd starts, but does not exit sqlcmd when the query has finished running.
  Multiple-semicolon-delimited queries can be executed. Use quotation
  marks around the query, as shown in the following example.


This is in my workstation.

 of -q.


  -Q" cmdline query " Executes a query when sqlcmd starts and then immediately exits sqlcmd. Multiple-semicolon-delimited queries can be
  executed. Use quotation marks around the query, as shown in the
  following example.