รายละเอียดของการตอบ ::
... ขอบคุณมากๆเลยค่ะพี่ v ไม่รู้ว่าจะแนบไฟล์ให้ตรงไหน export ออกมาแล้วอ่ะคะ ขอจัดแบบลูกทุ่งให้นะคะ.....ไม่ว่ากันนะคะ
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Oct 14, 2018 at 08:20 AM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `test`
--
-- --------------------------------------------------------
--
-- Table structure for table `atest`
--
CREATE TABLE IF NOT EXISTS `atest` (
`pro_id` int(10) NOT NULL,
`Type_name` varchar(200) CHARACTER SET utf8 NOT NULL,
`proname` varchar(100) CHARACTER SET utf8 NOT NULL,
`color` varchar(20) CHARACTER SET utf8 NOT NULL,
`lote` int(10) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=103 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `atest`
--
INSERT INTO `atest` (`pro_id`, `Type_name`, `proname`, `color`, `lote`) VALUES
(101, 'a', 'กระเป๋า', 'แดง', 111),
(102, 'b', 'รองเท้า', 'ดำ', 222);
-- --------------------------------------------------------
--
-- Table structure for table `btest`
--
CREATE TABLE IF NOT EXISTS `btest` (
`id` int(10) NOT NULL,
`name` varchar(200) NOT NULL,
`phone` int(20) NOT NULL,
`pro_id` int(10) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `btest`
--
INSERT INTO `btest` (`id`, `name`, `phone`, `pro_id`) VALUES
(1, 'wee', 865555555, 101),
(2, 'bee', 514782222, 101),
(3, 'dang', 314521123, 102);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `atest`
--
ALTER TABLE `atest`
ADD PRIMARY KEY (`pro_id`);
--
-- Indexes for table `btest`
--
ALTER TABLE `btest`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `atest`
--
ALTER TABLE `atest`
MODIFY `pro_id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=103;
--
-- AUTO_INCREMENT for table `btest`
--
ALTER TABLE `btest`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
[/coding]