Skip to content
Advertisement

Tag: select

SQL select column with conditions JAVA

I tried to get specific value where the column of names in my database contains “jansen”,but when i run my code it shows error like this here is my code [and here is my database in Sqlyog] Answer You should put quotes around string values in your SQL statement. Another issue you may run into later, is that your resources

PostgreSQL select record with multiple condition

I am trying to select the record but not getting the record I wanted. here is my sqlfiddle http://sqlfiddle.com/#!17/5296a/1 so when I selects the record using below query it gives me result with the title DDDDD. it should give me GGGGGGGG. I wanted to check if there is any record with author_id=3 and greater than the post id=3 if not

How to select and view database with specific value?

So I’m trying to search and print the value from the PHPMyAdmin database. But the result shows all row which has variable with containing the value. Like when I try search variable int bulan that has value 2. This also shows a row that has a value of 12, 22 or 23 as a result. this is my code Answer

Advertisement