mamalirize
سه شنبه 05 شهریور 1392, 20:01 عصر
سلام دوستان میشه از روی این سه تا جدول دیتابیس نمودار er کشید؟؟
یه جدول مربوط به اطلاعات کاربران - یه جدول مربوط به محصولات و یه جدول مربوط به خرید کالا هست
چطوری میتونم ارتباط این جدول ها رو با هم تو mysql ببینم؟
Table structure for table `buy`
--CREATE TABLE `buy`
(
`id` int(11)
NOT NULL auto_increment,
`namepi` text NOT NULL,
`username` text NOT NULL,
`addres` text NOT NULL,
`zip` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
--
Table structure for table `product`
--
CREATE TABLE `product`
(
`id` int(11) NOT NULL auto_increment
`name` text NOT NULL
`price` text NOT NULL
`cat` int(11) NOT NULL
`exp` text NOT NULL
`pic` text NOT NULL
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=39 ;
-----------------------------------------------------------------------------------------
Table structure for table `user`
--
CREATE TABLE `user`
(
`id` int(11) NOT NULL auto_increment
`name` text NOT NULL
`lname` text NOT NULL
`email` text NOT NULL
`username` text NOT NULL
`password` text NOT NULL
`how` text NOT NULL
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;
یه جدول مربوط به اطلاعات کاربران - یه جدول مربوط به محصولات و یه جدول مربوط به خرید کالا هست
چطوری میتونم ارتباط این جدول ها رو با هم تو mysql ببینم؟
Table structure for table `buy`
--CREATE TABLE `buy`
(
`id` int(11)
NOT NULL auto_increment,
`namepi` text NOT NULL,
`username` text NOT NULL,
`addres` text NOT NULL,
`zip` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
--
Table structure for table `product`
--
CREATE TABLE `product`
(
`id` int(11) NOT NULL auto_increment
`name` text NOT NULL
`price` text NOT NULL
`cat` int(11) NOT NULL
`exp` text NOT NULL
`pic` text NOT NULL
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=39 ;
-----------------------------------------------------------------------------------------
Table structure for table `user`
--
CREATE TABLE `user`
(
`id` int(11) NOT NULL auto_increment
`name` text NOT NULL
`lname` text NOT NULL
`email` text NOT NULL
`username` text NOT NULL
`password` text NOT NULL
`how` text NOT NULL
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;