Friday, May 3, 2019

php - How to get the numbers of a column in phpmyadmin?




I have the database as below picture shown:



enter image description here



I want to get the numbers under "ID" colm with "0" value in "is_parent".



How to do that with a sql query?




I want the numbers going to be link this:



1792,2304,1793,1794,2308.. etc..



Tried my best, with failed attempt, hopefully someone can help me with the correct query.



Thank you,
regards.


Answer



Try this, it is simple




SELECT id FROM `table_name` WHERE is_parent= 0

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...