- SELECT
- Order By Rand
-
Concat Fields
- Between
- Regexp
- If Null
- Union
- Replace
- Using Syntax
- Substring
- DATE
- Get Date
- Date Format
- Today
- Month Day
- Date Parts
- ADMINISTRATION
- Foreign Key
- Foreign Key Disable
- Innodb
- Create Database
- Create Table
- Add Column
- Add Index
- Data Type
- Primary Key
- Errors
- Indexes
- Mysqldump
- Table Definition
MYSQL PAGES -
LEVEL 3
GROUP_CONCAT
SELECT GROUP_CONCAT(ancestor) AS ancestors FROM catg_path WHERE descendant=7
//ancestor: 2,5,7
SELECT GROUP_CONCAT(ancestor SEPARATOR ' / ') AS ancestors FROM catg_path WHERE descendant=7
//ancestors: 2 / 5 / 7
SELECT GROUP_CONCAT(ancestor ORDER BY ancestor DESC SEPARATOR ' / ') AS ancestors
FROM catg_path WHERE descendant=7
//ancestors: 7 / 5 / 2
CONCAT_WS
SELECT CONCAT_WS(" / ", catg, subcatg) FROM catg WHERE catg='programming'; // jQuery / MySQL / PHP