If you are talking about the basic query then have a look at this:
SELECT * FROM tbUserDetails WHERE UserNAME = ?
Here ? means which user information you want to fetch from database. You'll have to be clear on that. You can use like:
SELECT * FROM tbUserDetails WHERE UserNAME = 'amit'
Here
*
means all the columns from the table. If you want only specific columns from table then you can replace the
*
to your column names separated with comma. Try like this:
SELECT FName, LName, Address, EmailID, PhoneNo FROM tbUserDetails WHERE UserNAME = 'amit'
Hope it helps.
--Amit