cactusbeef Posted November 1, 2016 Share Posted November 1, 2016 I need to have sql like seelct * from student where stuid='123456' and school_year='2017' or seelct * from student depende on do the two parameter be givein gor not Link to comment Share on other sites More sharing options...
arif3hosain Posted November 2, 2016 Share Posted November 2, 2016 FOR ORACLE: seelct * from student where stuid=NVL('123456',stuid) and school_year=NVL('2017',school_year)MYSQLseelct * from student where stuid LIKE '123456%' and school_year LIKE '2017%'Hope got your answerFor more query ask me atSkype arif.3hosain Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now