Quantcast
Channel: Recent Edits
Viewing all articles
Browse latest Browse all 12198

IN clause does validate column names

$
0
0
The IN clause is not validating the column names in the sub query but is validating against the table name in the outer query. Here is an example: Create table #table1(col1 int, col2 char(10), col3 char(15)); Create table #table2(col10 int, col11 char(10), col12 char(15)); insert into #table1(col1, col2, col3) select 1, 'one', 'three' insert into #table1(col1, col2, col3) select 2, 'two', 'three' insert into #table1(col1, col2, col3) select 3, 'three', 'four' insert into #table2(col

Viewing all articles
Browse latest Browse all 12198

Trending Articles



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