-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.

4
  • 4
    LIMIT 1 maybe? Commented Jul 6, 2018 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. Commented Jul 6, 2018 at 16:09
  • 5
    Possible duplicate of PHP PDO returning single row (PDO) or Single Result from Database by using mySQLi ()mysqli) Commented Jul 6, 2018 at 16:19
  • 1
    Next time, start by doing some research. I found many posts about this straight away here on SO alone. Commented Jul 6, 2018 at 16:21

1 Answer 1

-1
select * from addcuust order by customer asc limit 1
Sign up to request clarification or add additional context in comments.

1 Comment

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.