sqlȨÏÞ
sqlȨÏÞ:
´´½¨User:
insert into mysql.user(Host,User,Password)
values("localhost","cordev",password("xasoftorg"));
insert into
mysql.user(Host,User,Password)
values("localhost","corhotfix",password("xasoftorg"));
insert into
mysql.user(Host,User,Password)
values("localhost","corint",password("xasoftorg"));
¸³ÓèȨÏÞ£º
grant
all privileges on cordev.* to cordev identified by 'xasoftorg';
grant
all privileges on corhotfix.* to corhotfix identified by 'xasoftorg';
grant
all privileges on corint.* to corint identified by 'xasoftorg';
Ë¢ÐÂ:
flush
privileges;
Óû§È¨ÏÞ
ÉèÖÃ
¡¡¡¡1¡¢ÒÔroot£¨Ò²¿ÉÓÃÆäËüÓÐȨÏÞµÄÓû§£©Éí·ÝµÇ¼
¡¡¡¡2¡¢
ÏÂÃæ´´½¨Ò»¸ötestÓû§£¬ÃÜÂëΪtest£¬²¢ÇÒÖ»ÄܶÔpictureÊý¾Ý¿â½øÐвÙ×÷µÄÃüÁî
¡¡¡¡¡¡¡¡mysql>GRANT ALL ON
picture.* TO test IDENTIFIED BY "test";
¡¡¡¡GRANTÓï¾äµÄÓï·¨¿´ÉÏÈ¥ÏñÕâÑù£º
¡¡
¡¡GRANT privileges (columns) ON what TO user IDENTIFIED BY "password"
WITH GRANT OPTION¡¡
ҪʹÓøÃÓï¾ä£¬ÄãÐèÒªÌîдÏÂÁв¿·Ö£º
¡¡¡¡privileges
ÊÚÓèÓû§µÄȨÏÞ£¬Ï±íÁгö¿ÉÓÃÓÚGRANTÓï¾äµÄȨÏÞÖ¸¶¨·û£º
¡¡È¨ÏÞÖ¸¶¨·û ȨÏÞÔÊÐíµÄ²Ù×÷
¡¡¡¡Alter
¡¡¡¡¡¡¡¡¡¡¡¡Ð޸ıíºÍË÷Òý
¡¡¡¡Create ¡¡¡¡¡¡¡¡ ´´½¨Êý¾Ý¿âºÍ±í
¡¡¡¡Delete ¡¡¡¡¡¡¡¡ ɾ³ý±íÖÐÒÑÓеļǼ
¡¡
¡¡Drop ¡¡¡¡ Åׯú£¨É¾³ý£©Êý¾Ý¿âºÍ±í
¡¡¡¡INDEX ¡¡¡¡¡¡¡¡ ´´½¨»òÅׯúË÷Òý
¡¡¡¡Insert ¡¡¡¡¡¡¡¡ Ïò±íÖвåÈëÐÂÐÐ
¡¡
¡¡REFERENCE ¡¡¡¡Î´ÓÃ
¡¡¡¡Select¡¡¡¡¡¡¡¡ ¼ìË÷±íÖеļǼ
¡¡¡¡Update ¡¡¡¡¡¡¡¡ ÐÞ¸ÄÏÖ´æ±í¼Ç¼
¡¡
¡¡FILE ¡¡¡¡¡¡¡¡¡¡¡¡¶Á»òд·þÎñÆ÷ÉϵÄÎļþ
¡¡¡¡PROCESS ¡¡¡¡ ²é¿´·þÎñÆ÷ÖÐÖ´ÐеÄÏß³ÌÐÅÏ¢»òɱËÀÏß³Ì
¡¡¡¡RELOAD
¡¡¡¡¡¡¡¡ÖØÔØÊÚȨ±í»òÇå¿ÕÈÕÖ¾¡¢Ö÷»ú»º´æ»ò±í»º´æ¡£
¡¡¡¡SHUTDOWN¡¡¡¡ ¹Ø±Õ·þÎñÆ÷
¡¡¡¡ALL ¡¡¡¡¡¡¡¡¡¡¡¡ËùÓУ»ALL
PRIVILEGESͬÒå´Ê
¡¡¡¡USAGE ¡¡¡¡¡¡¡¡ÌØÊâµÄ“ÎÞȨÏޔȨÏÞ
Ìí¼ÓϵͳÓû§:
adduser
oracle
passwd oracle
solar:/home# rm -r oracle
solar:/home# cp
-r mhung oracle
solar:/home# chown -R oracle oracle
solar:/home#
rm -r oracle
solar:
Ïà¹ØÎĵµ£º
--´´½¨±íTongXunLu
CREATE TABLE TongXunLu
(
[tName] nvarchar(30),
[tAddress] nvarchar(50),
[tEmail] varchar(50)
)
--´´½¨±í students
CREATE TABLE students
(
[sId] int IDENTITY (1, 1) primary key NOT NULL ,
[sName] varchar (50) NOT ......
¡¡UNIONÖ¸ÁîµÄÄ¿µÄÊǽ«Á½¸öSQLÓï¾äµÄ½á¹ûºÏ²¢ÆðÀ´¡£´ÓÕâ¸ö½Ç¶ÈÀ´¿´£¬ ÎÒÃÇ»á²úÉúÕâÑùµÄ¸Ð¾õ£¬UNION¸úJOINËÆºõÓÐЩÐíÀàËÆ£¬ÒòΪÕâÁ½¸öÖ¸Áî¶¼¿ÉÒÔÓɶà¸ö±í¸ñÖÐߢȡ×ÊÁÏ¡£ UNIONµÄÒ»¸öÏÞÖÆÊÇÁ½¸ö SQL Óï¾äËù²úÉúµÄÀ¸Î»ÐèÒªÊÇͬÑùµÄ×ÊÁÏÖÖÀà¡£ÁíÍ⣬µ±ÎÒÃÇÓà UNIONÕâ¸öÖ¸Áîʱ£¬ÎÒÃÇÖ»»á¿´µ½²»Í¬µÄ×ÊÁÏÖµ (ÀàËÆ SELECT DISTINCT) ......
What Is SQL?
SQL (pronounced as the letters S-Q-L or as sequel) is an abbreviation for Structured Query Language. SQL is a language designed specifically for communicating with databases.
Unlike other languages (spoken languages like English, or programming languages like Java or Visual Basic), SQ ......
num_field number(12,2);
±íʾnum_fieldÊÇÒ»¸öÕûÊý²¿·Ö×î¶à10λ¡¢Ð¡Êý²¿·Ö×î¶à2λµÄ±äÁ¿¡£
case.....when Ó÷¨£¨Óëdecode£¨£©×÷ÓúÜÏñ£©
select case zsxm_dm
when '02' then
'Ó ......
1¡¢¿ªÊ¼->³ÌÐò-->Microsoft SQL Server 2005>ÅäÖù¤¾ß->SQL Server Configuration Manager->SQL Server 2005 ÍøÂçÅäÖà ->“xxx£¨ÄúµÄÊý¾Ý¿â£©”µÄÐÒ飬ÈçÏÂͼ
½«“Named Pipes”ºÍ“TCP/IP”µÄ״̬µ÷³É“ÆôÓÔ£¬·½·¨ÊÇÔÚ“Named Pipes”ºÍ“T ......