สอบถามเรื่องฐานข้อมูล sql ครับ

เริ่มโดย 9mobile, 27 มกราคม 2013, 04:24:33

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

9mobile


ad ฐานข้อมูลไปทำเป็นแบบนี้คับ




มีผู้รู้ท่านได ช่วยเช็คให้ผมทีนะครับว่าผิดพลาดตรงไหนครัีบ ทำบน localhost ปกติดีครับ แต่พอขึ้นโฮสจริงกลับใช้ไม่ได้คับ

code

-- Table structure for table `payment`
--

CREATE TABLE `payment` (
  `id_pay` int(5) unsigned zerofill NOT NULL auto_increment,
  `date_pay` date NOT NULL default '0000-00-00',
  `id_orders` varchar(1) NOT NULL default '00000',
  `status_pay` char(0) NOT NULL default '',
  PRIMARY KEY  (`id_pay`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;

--

หากถามผิดห้องขออภัยครับ

ขอบคุณมากครับ  :wanwan017:

xvlnw.com

`id_orders` varchar(1) NOT NULL default '00000',

คุณกำหนดความยาวของ id_orders แค่ 1 แต่ค่า Default คือ 00000 ซึ่งมันยาวถึง 5 อะครับ
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

9mobile

ขอบคุณมากครับท่าน ได้แล้ว  :wanwan020:

:wanwan017: :wanwan017: