Use the following SQL DDL statements to create the six tables required for this project. Note that you need to use the exact statements as shown below to ensure that the instructor can test your programs using the instructor’s data later. Please also note that the tables are created in certain order such that by the time when a foreign key needs to be created, the corresponding primary key has already been created.
1.创建相关表格:
(1)创建employees表格:
(2)创建customers表格:
(3)创建suppliers表格:
(4)创建products表格:
(5)创建purchases表格:
(6)创建logs表格:
(7)向表格中加入具体数据:
2.创建TableList.php实现一个页面显示所有表格:
(1)php代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>显示所有表格</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 20px;
padding: 20px;
border: 1px solid #ccc;
border-radius: 5px;
width: 200px; /* 设置页面宽度 */
height: 320px; /* 设置页面高度 */
}
h2 {
color: #333;
}
a {