MySQL SELECT code example
Example 1: how to select all attributes from a row if there is a certain string in it MySQL
SELECT column1, column2,...
FROM table_name
WHERE first_name = 'John' AND sales_in_year <= 50
Example 2: select mysql
SELECT column_name(s) FROM table_name
Example 3: mysql SELECT
SELECT
`nachname` , `vorname`
FROM testadressen
WHERE vorname = 'Fischer'
Example 4: php + get sql query
echo $select->__toString();
Example 5: MySQL SELECT
SELECT select_list
FROM table_name;
Example 6: select query in mysql
SELECT * FROM `table_name`;
SELECT `col1`,`col2` FROM `table_name`;
SELECT `col1 as name`,`col2 as email` FROM `table_name`;
SELECT * FROM `table_name` WHERE id = '1';