-5
select * from addcuust order by customer asc

This is my query. When I run this query both rows selecting what should I do? I just want 1 row at once.

Dharman
  • 21,838
  • 18
  • 57
  • 107
  • 4
    `LIMIT 1` maybe? – AbraCadaver Jul 06 '18 at 16:08
  • 2
    You can try `LIMIT 1` a the first comment suggests or add a proper `WHERE` clause to filter the result set. – MonkeyZeus Jul 06 '18 at 16:09
  • 5
    Possible duplicate of [PHP PDO returning single row](https://stackoverflow.com/questions/5456626/php-pdo-returning-single-row) (PDO) or [Single Result from Database by using mySQLi](https://stackoverflow.com/questions/14624509/single-result-from-database-by-using-mysqli) ()mysqli) – Magnus Eriksson Jul 06 '18 at 16:19
  • 1
    Next time, start by doing some research. I found _many_ posts about this straight away here on SO alone. – Magnus Eriksson Jul 06 '18 at 16:21

1 Answers1

-1
select * from addcuust order by customer asc limit 1
Dharman
  • 21,838
  • 18
  • 57
  • 107
alex
  • 16
  • 5
  • This doesn't really need an answer as it's a simple issue, well documented, and answered in the comments. However, if you're going to answer at least use code formatting and provide the correct syntax with appropriate matching `"` etc – James Jul 06 '18 at 18:59