MYSQL commands Collection
2 posters
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
MYSQL commands Collection
Don't get too happy. I don't plan to give completely all mysql commands for you here.
yeah, I am going give some, you are going to give some, and together, we are going to give all necessary commands here.
Ibrahim helped a lot by providing some necessary SQL commands collection as well.
You can take a look at at some mysql command structures from here:
[You must be registered and logged in to see this link.]
Making account table:
Delete a table:
Add a column:
Delete a Column:
Update a value:
Export data from table:
Create Webpage:
create Log:
Export table for Log:
yeah, I am going give some, you are going to give some, and together, we are going to give all necessary commands here.
Ibrahim helped a lot by providing some necessary SQL commands collection as well.
You can take a look at at some mysql command structures from here:
[You must be registered and logged in to see this link.]
Making account table:
- Code:
create table account (
account_no varchar(10) PRIMARY KEY,
bank_name varchar(15),
balance smallint(10) );
Delete a table:
- Code:
drop table account;
Add a column:
- Code:
alter table account add newcolumn Text(10);
Delete a Column:
- Code:
alter table account drop new;
Update a value:
- Code:
update account set new="newvalue" where bank_no="Round Hill";
Export data from table:
- Code:
select * from account into outfile '/tmp/account.o'
fields terminated by ','
lines terminated by '\r';
- Code:
load data local infile '/tmp/account'
into TABLE account
fields terminated by ','
lines terminated by '\n';
Create Webpage:
- Code:
CREATE TABLE webpage ( id MEDIUMINT NOT NULL AUTO_INCREMENT,
Content TEXT,
Title VARCHAR(50),
PRIMARY KEY (id));
create Log:
- Code:
CREATE TABLE Log ( ID MEDIUMINT
NOT NULL
AUTO_INCREMENT
PRIMARY KEY,
DateCreated DATE,
Browser VARCHAR(50),
IPNumber VARCHAR(15),
WebpageID MEDIUMINT,
CookieID MEDIUMINT,
ReferringPage VARCHAR(255) );
Export table for Log:
- Code:
1,2002-01-01,Mozilla/4.0,192.168.1.10,2,1,http://yahoo.com
2,2003-02-01,Mozilla/4.0,192.168.1.10,2,2,http://minbar.homeip.net/
3,2001-04-01,Mozilla/4.0,192.168.1.10,2,3,http://www.google.com
4,2004-01-01,Mozilla/4.0,192.168.1.10,2,1,http://www.easyrew.com
5,2005-04-04,Mozilla/4.0,192.168.1.10,2,1,http://www.kli.org
Last edited by LordAmit on Tue Oct 26, 2010 5:17 am; edited 1 time in total
Re: MYSQL commands Collection
Thanks a lot Amit.
I would be very glad if I could contribute here.
But I don't know more
I would be very glad if I could contribute here.
But I don't know more
Similar topics
» some commands for mysql.....
» Various commands for DBMS and MySQL
» Command for MySQL of DBMS-I
» Connect with MySQL using C in ubuntu
» SQL commands taught on 7th August 2010 Class
» Various commands for DBMS and MySQL
» Command for MySQL of DBMS-I
» Connect with MySQL using C in ubuntu
» SQL commands taught on 7th August 2010 Class
IITDU Forum :: Academics (BIT) :: Semester 4 :: CSE 404
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Tue Sep 29, 2015 2:45 pm by Sophiawood
» Cisco EHWIC SFP/GE WAN Card
Mon Sep 07, 2015 11:08 am by Sophiawood
» Huawei S1700-28GFR-4P-AC Price
Thu Jun 25, 2015 2:31 pm by Sophiawood
» teach yourself C++ / Herbert Schildt Solutions
Wed Jun 03, 2015 1:52 pm by Abdullah Al Noman
» teach yourself c by herbert schildt pdf
Wed May 13, 2015 11:01 pm by Raquib Ridwan
» ASA 5506X With Firepower ASA5506-K9
Fri Apr 10, 2015 4:31 pm by Sophiawood
» New Trends in Deal Business
Tue Feb 03, 2015 9:38 pm by nersoa
» PoE Power Allocation for WS-C2960S-24PS-L
Wed Nov 05, 2014 11:12 am by Sophiawood
» How to cure back pain
Fri Oct 31, 2014 7:15 pm by Bergen Guildford