sql untuk penjualan_item
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 26, 2018 at 05:31 AM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
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: `db_tokoweb`
--
-- --------------------------------------------------------
--
-- Table structure for table `penjualan_item`
--
CREATE TABLE `penjualan_item` (
`no_penjualan` char(7) NOT NULL,
`kd_barang` char(5) NOT NULL,
`harga` int(12) NOT NULL,
`jumlah` int(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `penjualan_item`
--
INSERT INTO `penjualan_item` (`no_penjualan`, `kd_barang`, `harga`, `jumlah`) VALUES
('JL00001', 'B0001', 90000, 1),
('JL00002', 'B0002', 110000, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `penjualan_item`
--
ALTER TABLE `penjualan_item`
ADD KEY `nomor_penjualan_tamu` (`no_penjualan`,`kd_barang`);
/*!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 */;
\
sampai sini
sql untuk tmp_penjualan
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 26, 2018 at 05:34 AM
-- Server version: 10.1.8-MariaDB
-- PHP Version: 5.6.14
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: `db_tokoweb`
--
-- --------------------------------------------------------
--
-- Table structure for table `tmp_penjualan`
--
CREATE TABLE `tmp_penjualan` (
`id` int(10) NOT NULL,
`kd_barang` char(5) NOT NULL,
`harga` int(12) NOT NULL,
`jumlah` int(4) NOT NULL,
`kd_user` char(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tmp_penjualan`
--
ALTER TABLE `tmp_penjualan`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tmp_penjualan`
--
ALTER TABLE `tmp_penjualan`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
/*!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 */;
Minggu, 25 Februari 2018
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar