官术网_书友最值得收藏!

Creating tables in MySQL

Let's now create tables and relationships in the MySQL database by using the script created in the previous section.

Make sure that MySQL is running and there is an open connection to the server from MySQL Workbench (see Chapter 1, Introducing JEE and Eclipse, for more details):

  1. Create a new query tab (the first button in the toolbar) and paste the preceding script.
  2. Execute the query.
  3. At the end of the execution, refresh schemas in the left-hand pane. You should see the course_management schema and the tables created in it.

Figure 4.9: MySQL schema for the course management example

主站蜘蛛池模板: 繁昌县| 长海县| 马边| 县级市| 灵宝市| 岱山县| 嘉兴市| 鄂伦春自治旗| 鄱阳县| 泸溪县| 光山县| 克东县| 石渠县| 昌邑市| 浦东新区| 明溪县| 白银市| 和龙市| 崇义县| 合作市| 泸溪县| 开远市| 凉山| 昌江| 海城市| 盘锦市| 靖安县| 上犹县| 南和县| 通辽市| 泰兴市| 乌兰浩特市| 抚顺县| 赣州市| 周至县| 金塔县| 通海县| 宜章县| 太原市| 德州市| 福海县|