IN operator use for get single condition or multiple condition data from sql table
IN Operator syntax
SELECT YourColumnName FROM YourTableName WHERE ConditionColumnName IN (Values)
IN Operator Example
IN Operator you can use like
SELECT * FROM City WHERE CityName IN ('T1', 'T1')
OR
SELECT * FROM City WHERE CountryName IN (SELECT CountryName FROM Country WHERE CountryName LIKE 'a%')
IN Operator syntax
SELECT YourColumnName FROM YourTableName WHERE ConditionColumnName IN (Values)
IN Operator Example
IN Operator you can use like
SELECT * FROM City WHERE CityName IN ('T1', 'T1')
OR
SELECT * FROM City WHERE CountryName IN (SELECT CountryName FROM Country WHERE CountryName LIKE 'a%')
No comments:
Post a Comment