Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
PHPmaster PHPmaster is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 332
Rep Power: 14
PHPmaster mempunyai hidup yang Normal
Default [Ask] SQL in Mic.Access

Maap gan..Newbie..



Gw dapat tugas nih..Buat Table di access tapi menggunakan SQL..



Misalnya gw mw buat table dengan nama Customer..



Trus didalamnya ada firstname,lastname,address,postcode,phone,and e-mail..



Bisa dikasih contoh ga gan gimana code nya..



Apa yg gw bwt ini udah benar..?




Quote:





CREATE TABLE Customer

(CostumerID TEXT (4) NOT NULL,

FirstName TEXT (20) NOT NULL,

LastName TEXT (20) NOT NULL,

Address TEXT (20) NOT NULL,

PostCode TEXT (8) NOT NULL,

PhoneNo TEXT (20) NOT NULL,

Birthdate DATE NOT NULL

Email TEXT (11) NOT NULL,

PRIMARY KEY (CustomerID));





Tp pas gw RUN ga jalan dia



Trus Constraint itu gunannya buat apa dan system penulisan codenya gimana..







Trus kl mw ubah system penulisan Date-nya gimana..?



Kan standarnya 29/03/2010..Kl mw gw ubah 29-Mar-2010 gimana caranya..?



Mohon bantuannya yak..maklum masih blum tw apa" tentang SQL



Thx yah

</div>

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 10:58 AM.


no new posts