Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
"select * from traintime where TrainNo=11026,11201,12213";

I want to select these values but it is giving an error..
Posted

SQL
select * from traintime where TrainNo IN (11026,11201,12213)
 
Share this answer
 
Comments
Abhinav S 16-Feb-14 8:07am    
5 of course.
Thanks Abhinav. :)
Abhinav Chaudhary 16-Feb-14 10:50am    
Thanks tadit sir and abhinav sir....
Welcome Abhinav. :)
Try
C#
Select * from traintime where trainno in (123,124,...)
 
Share this answer
 
Comments
High five. :)
Abhinav S 16-Feb-14 8:10am    
Thanks
Abhinav Chaudhary 16-Feb-14 10:49am    
Thanks....!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900