Archive:PHP and MySQL Programming/Creating a Table: Difference between revisions

wikademia>Darklama
wikademia>Wikademia
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{delete|see: Talk:Programming:PHP and MySQL}}
[[Programming:PHP and MySQL|TOC]]
== Introduction ==
== Introduction ==
 
{{?}}
Before creating a table, please read the previous section on [[Programming:PHP and MySQL:Creating a Database|Creating a Database]].
Before creating a table, please read the previous section on [[Programming:PHP and MySQL:Creating a Database|Creating a Database]].


Line 18: Line 14:
  +------------+--------------+------------------------------+------+
  +------------+--------------+------------------------------+------+


As you can see, We have rows (horizontal collection of fields), as well as columns (the vertical attirbutes and values).
As you can see, We have rows (horizontal collection of fields), as well as columns (the vertical attributes and values).


== Creating a Table ==
== Creating a Table ==
Line 74: Line 70:
  1 row in set (0.05 sec)
  1 row in set (0.05 sec)


And then to show the same information, in a tabluated format :
And then to show the same information, in a tabulated format :


  mysql> DESCRIBE `books`;
  mysql> DESCRIBE `books`;
Line 90: Line 86:
  4 rows in set (0.18 sec)
  4 rows in set (0.18 sec)


[[Category:PHP]]
[[../Creating a Database/|Previous: Creating a Database]] | [[../|TOC]] | [[../Basic Queries/|Next: Basic Queries]]
[[Category:MySQL]]
 
[[Category:PHP and MySQL Programming|{{SUBPAGENAME}}]]