SQL query return data from multiple tables

前端 未结 6 973
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 04:23

I would like to know the following:

  • how to get data from multiple tables in my database?
  • what types of methods are there to do this?
  • what are
6条回答
  •  -上瘾入骨i
    2020-11-21 05:00

    Hopes this makes it find the tables as you're reading through the thing:

    jsfiddle

    mysql> show columns from colors;                                                         
    +-------+-------------+------+-----+---------+----------------+
    | Field | Type        | Null | Key | Default | Extra          |
    +-------+-------------+------+-----+---------+----------------+           
    | id    | int(3)      | NO   | PRI | NULL    | auto_increment |
    | color | varchar(15) | YES  |     | NULL    |                |
    | paint | varchar(10) | YES  |     | NULL    |                |
    +-------+-------------+------+-----+---------+----------------+
    

提交回复
热议问题