PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 12, 2022

[FIXED] Query to search for a specific value in a db column

 February 12, 2022     codeigniter, database, mysql, php, sql     No comments   

Issue

I want to know whether there are any '0's in the issues_status column of the issues table. The issues_status column store values: '0' & '1'. I guess a query find the count of 0's would give me the required result. May i know how to accomplish this.

issues Table

issues_id issues_status
1 1
2 0

Solution

SELECT COUNT(issues_status) FROM issues WHERE issues_status=0



Answered By - Alec
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing