create table student
(
no char(5) not null unique,
name char(20) unique,
sex int
)
应用实例:
require('config.inc');
require('mysql.inc');
$sql="
create table studentss
(
no char(5) not null unique,
name char(20) unique,
sex int(5)
);";
$result = $DB->query($sql);
if($result)
echo '数据表建立成功';
?>