Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÈçºÎµ¼Èë.sqlÎļþµ½mysqlÖÐ

ÈçºÎµ¼Èë.sqlÎļþµ½mysqlÖУ¿
C:\mysql\bin>mysql  -u  Óû§Ãû -p  Êý¾Ý¿âÃû  <   c:/test.sql    (source "c:\adsense.sql" )
ÖмäµÄ¿Õ¸ñÊÇÒ»¸ö¿Õ¸ñλ¡£
ͬʱʹÓÃ200¶àMBµÄsqlÎļþ¡£
ÀýÈ磺
C:\Program Files\MySQL\bin>mysql -u root -p myrosz < c:/myro.sql
Enter password: ****
¸½£¨PDMתSQL½Å±¾Îļþ£©
pdm×öºÃºó£¬×îÖÕÊÇÒª½«Æäת»¯ÎªÊý¾Ý¿âʵÌåµÄ¡£
1.È·Èϵ±Ç°PowerdesignerÉèÖõÄdbmsÊÇ·ñÕýÈ·,¼´ÊÇ·ñÊÇÎÒÃÇÒªÉú³ÉµÄÊý¾Ý¿âÀàÐÍ£¬ÎÒÔÚÕâÀïʹÓõÄÊÇsqlserver2000:
Powerdesigner->Êý¾Ý¿â->¸ü¸Äµ±Ç°dbms£¬Ñ¡ÔñÄúµÄÊý¾Ý¿âÀàÐÍ¡£
2.ÅäÖÃPowerdesignerÓëÊý¾ÝÔ´µÄÁ¬½Ó
Powerdesigner->Êý¾Ý¿â->ÅäÖÃÁ¬½Ó->Óû§dsn(»òϵͳdsn)->Ñ¡Ôñ¡¢Ìí¼ÓÄúµÄÊý¾ÝÔ´
3.Á¬½Ó
Powerdesigner->Êý¾Ý¿â->Á¬½Ó->ÉèÖúÃÄú¸Õ²Å½¨Á¢µÄdsnÈ·¶¨¡£
OK,ÉèÖúÃÁ¬½ÓºóÎÒÃǾͿÉÒÔ½«pdmÉú³ÉsqlÓï¾äÁË¡£
4.Êý¾Ý¿âÉú³É
Powerdesigner->Êý¾Ý¿â->Éú³ÉÊý¾Ý¿â->ÅäÖúã¨Ä¬ÈϾͿÉÒÔ£©ºóÑ¡ÔñÈ·¶¨¾ÍºÃÁË¡£
Äõ½sql½Å±¾Óï¾ä£¬´ó¼Ò¶¼ÖªµÀÓ¦µ±ÈçºÎ×öÁË°É£¬·Åµ½sql²éѯ·ÖÎöÆ÷ÀïÖ´Ðаɡ£
ÎÄÕÂÀ´Ô´(WEB¿ª·¢¼¼Êõ֪ʶ¿â)£ºhttp://cn-web.com/cnweb/0/468/article/


Ïà¹ØÎĵµ£º

³£¼ûOracle HINTµÄÓ÷¨ SQLÓÅ»¯

ÔÚSQLÓï¾äÓÅ»¯¹ý³ÌÖУ¬ÎÒÃǾ­³£»áÓõ½hint,ÏÖ×ܽáÒ»ÏÂÔÚSQLÓÅ»¯¹ý³ÌÖг£¼ûOracle HINTµÄÓ÷¨£º
1. /*+ALL_ROWS*/
±íÃ÷¶ÔÓï¾ä¿éÑ¡Ôñ»ùÓÚ¿ªÏúµÄÓÅ»¯·½·¨,²¢»ñµÃ×î¼ÑÍÌÍÂÁ¿,ʹ×ÊÔ´ÏûºÄ×îС»¯.
ÀýÈç:
SELECT /*+ALL+_ROWS*/ EMP_NO,EMP_NAM,DAT_IN from BSEMPMS WHERE EMP_NO=’SCOTT’;
2. /*+FIRST_ROWS*/
±í ......

¶¯Ì¬´´½¨Sql ServerÓû§¼°ÆäȨÏÞ

Ò»¡¢ÈçºÎ¶¯Ì¬´´½¨Óû§
1.ʹÓô洢¹ý³Ì
sp_addlogin (Transact-SQL)
´´½¨Ð嵀 SQL Server µÇ¼£¬¸ÃµÇ¼ÔÊÐíÓû§Ê¹Óà SQL Server Éí·ÝÑéÖ¤Á¬½Óµ½ SQL Server ʵÀý¡£
ÖØÒªÌáʾ£º
ºóÐø°æ±¾µÄ Microsoft SQL Server ½«É¾³ý¸Ã¹¦ÄÜ¡£Çë±ÜÃâÔÚеĿª·¢¹¤×÷ÖÐʹÓøù¦ÄÜ£¬²¢×ÅÊÖÐ޸ĵ±Ç°»¹ÔÚʹÓøù¦ÄܵÄÓ¦ÓóÌÐò¡£Çë¸ÄÓà CREAT ......

mysqlÃüÁî´óÈ«

Æô¶¯£ºnet start mySql;
¡¡¡¡½øÈ룺mysql -u root -p/mysql -h localhost -u root -p databaseName;
¡¡¡¡ÁгöÊý¾Ý¿â£ºshow databases;
¡¡¡¡Ñ¡ÔñÊý¾Ý¿â£ºuse databaseName;
¡¡¡¡Áгö±í¸ñ£ºshow tables£»
¡¡¡¡ÏÔʾ±í¸ñÁеÄÊôÐÔ£ºshow columns from tableName£»
¡¡¡¡½¨Á¢Êý¾Ý¿â£ºsource fileName.txt;
¡¡¡¡Æ¥Åä× ......

mysql ±íÊý¾Ý±¸·ÝºÍ»Ö¸´

 
¼Ù¶¨±ítbl_name¾ßÓÐÒ»¸öPRIMARY KEY»òUNIQUEË÷Òý£¬±¸·ÝÒ»¸öÊý¾Ý±íµÄ¹ý³ÌÈçÏ£º
1¡¢Ëø¶¨Êý¾Ý±í£¬±ÜÃâÔÚ±¸·Ý¹ý³ÌÖУ¬±í±»¸üÐÂ
mysql>LOCK
TABLES READ tbl_name;
¹ØÓÚ±íµÄËø¶¨µÄÏêϸÐÅÏ¢£¬½«ÔÚÏÂÒ»Õ½éÉÜ¡£
2¡¢µ¼³öÊý¾Ý
mysql>SELECT
* INTO OUTFILE ‘tbl_name.bak’ from tbl_name;
3¡¢½âË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ