现在有一张表
id jdid kfjg msj 门市价 psj 平时价 zmj 周末价 qssj 起始时间
31 26 0 1234 150 150 1262275200
32 26 0 1234 148 148 1262275200
33 26 0 1234 188 188 1262275200
34 26 0 1234 168 168 1262275200
113 26 0 400 100 100 1272729600
114 26 0 99 99 99 1274630400
115 26 0 88 88 88 1274716800
116 26 0 100 1001 1001 1274544000
数据如下
CREATE TABLE IF NOT EXISTS `gm_homtel_price` (
`id` int(8) NOT NULL AUTO_INCREMENT,
`jdid` int(8) DEFAULT '0',
`kfjg` int(8) DEFAULT '0',
`msj` int(8) DEFAULT '0' COMMENT '门市价',
`psj` int(8) DEFAULT '0' COMMENT '平时价',
`zmj` int(8) DEFAULT '0' COMMENT '周末价',
`qssj` int(10) DEFAULT '0' COMMENT '起始时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='酒店价格' AUTO_INCREMENT=117 ;
--
-- 转存表中的数据 `gm_homtel_price`
--
INSERT INTO `gm_homtel_price` (`id`, `jdid`, `kfjg`, `msj`, `psj`, `zmj`, `qssj`) VALUES
(31, 26, 0, 1234, 150, 150, 1262275200),
(32, 26, 0, 1234, 148, 148, 1262275200),
(33, 26, 0, 1234, 188, 188, 1262275200),
(34, 26, 0, 1234, 168, 168, 1262275200),
(113, 26, 0, 400, 100, 100, 1272729600),
(114, 26, 0, 99, 99, 99, 127463
请教高手帮忙,session_start()放在外部的文件用 require 或 include 包含进来,请问这样做合理吗??代码运行是正常的,这样做合理吗??请高手指点。。。。 谢谢····
require 或 include ......
我用的是mysql6.0为什么一创建两个表这间用外键来连接时就说创建不了:can"nt create table ...
你的语句是什么?你的表是什么存储引擎? 如果是myisam 则不支持外键,你需要把表改为inndb
貼出SQL ......
是用别人写的类做的,还原时提示You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......