Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
mikecrengland
Creator III
Creator III

SQL Select

Hello All -

Is there any difference between these two statements (the SQL being the difference):

Load

     *

;

Select

     *

From dbo.table

;

Load

     *

;

SQL

Select

     *

From dbo.table

;

Does having the SQL in the statement change how it behaves?

Thanks!

mike

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Both work the same.

You don't need to use SQL before the SELECT.

edit: From the old help pages:

The syntax:

SQL SELECT * from tab1;

is allowed, and will in future documentation be the preferred syntax for Select (SQL), for reasons of consistency. The SQL prefix will, however, remain optional for select statements.

View solution in original post

3 Replies
swuehl
MVP
MVP

Both work the same.

You don't need to use SQL before the SELECT.

edit: From the old help pages:

The syntax:

SQL SELECT * from tab1;

is allowed, and will in future documentation be the preferred syntax for Select (SQL), for reasons of consistency. The SQL prefix will, however, remain optional for select statements.

mikecrengland
Creator III
Creator III
Author

Thanks!

Anonymous
Not applicable

The syntax that you used looks correct. The use of SQL is basically to issue SQL database command like calling a stored procedure or an SQL function. Also an update statement given a  correct connection mode.

Really to what you are showing, it will not make much difference, However the usage of an SQL command is more than just selecting records.

Please refer to the help file to get more info.

I hope this helps.