یه کمک دیگه ممنون میشم

3dsmax

Member
سلام من می خواستم این کد sql را وارد دیتابیسم بکنم می خواستم ببینم چطوری میشه این کار را انجام بدهم



create database book_sc;

use book_sc;

create table customers
(
customerid int unsigned not null auto_increment primary key,
name char(40) not null,
address char(40) not null,
city char(20) not null,
state char(20),
zip char(10),
country char(20) not null
);

create table orders
(
orderid int unsigned not null auto_increment primary key,
customerid int unsigned not null,
amount float(6,2),
date date not null,
order_status char(10),
ship_name char(40) not null,
ship_address char(40) not null,
ship_city char(20) not null,
ship_state char(20),
ship_zip char(10),
ship_country char(20) not null
);

create table books
(
isbn char(13) not null primary key,
author char(30),
title char(60),
catid int unsigned,
price float(4,2) not null,
description varchar(255)
);

create table categories
(
catid int unsigned not null auto_increment primary key,
catname char(40) not null
);

create table order_items
(
orderid int unsigned not null,
isbn char(13) not null,
item_price float(4,2) not null,
quantity tinyint unsigned not null,
primary key (orderid, isbn)
);

create table admin
(
username char(16) not null primary key,
password char(16) not null
);

grant select, insert, update, delete
on book_sc.*
to book_sc@localhost identified by 'password';


1.JPG
 

jhoseini

Member
دیتابیس ی که میخای توش بریزی رو انتخاب کن
از بالا، لینک sql رو کلیک کن، این کد sql رو بریز توش، تایید کن
واقعاً منظورت همین بود؟
164.gif
 

3dsmax

Member
سلام بعد از ایکه دیتابیسم رو ساختم و رفتم داخلش یه چنین صفحه ای باز می شود حالا باید چه کار بکنم
123456789.JPG
 

jhoseini

Member
من زیاد فرانسه بلد نیستم
kaffeetrinker_2.gif

اما فکر میکنم قبلا دیتابیس ساختید، با اینکه داخل کد بالا هم دارید دیتابیس رو میسازید
این یه خط رو حذف کنید و دوباره امتحان کنید
کد:
create database book_sc;
chase.gif
 

جدیدترین ارسال ها

بالا