How to retrieve data in MySQl database,retrieving data is carried out by Select statements.Igive you example of the basic retrieval syntax.
SELECT <attribute list>
FROM <table list>
WHERE <condition>
Example Simple Select queries
Table” Student”
To select the content of the columns named "LastName" and "Age" from the table above.
We use the following SELECT
statement:
SELECT <column> FROM <table>
SELECT Last_name,Age FROMStudent
The result goes like this:
The asterisk (*) is a quick way of selecting all columns!
SELECT * FROM StudentExample of Select Distinct Syntax


No comments:
Post a Comment