Is it possible to use SQL parameter markers by specifying the parameter somewhere in Azure Data Studio?
For example, a query query.sql
like
SELECT * FROM table WHERE foo = ?
and having the parameter specified somewhere outside the query when run (for example with pyodbc this would be something like pd.read_sql(query, conn, params=["param"])
).
Unlike Azure Data Studio - Setting SQL variables to be used as globals , I don't need a T-SQL global variable.
1条答案
按热度按时间0g0grzrc1#
You can use SQL parameter markers by fetching the parameters from notebook is possible by using following code:
Output: