using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OracleClient;
public partial class Query : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
  ......
ÎÒÕâÀïÊÇÈý¸öÈËÓ÷ÓÉÉϵÄ
ÒÔÇ°µÄIPµØÖ·ÊÇ192.168.1.100
ºóÀ´µØÖ·²»ÖªµÀÔõôµÄ¾Í±ä³É101ÁË
ÏÖÔÚ¼àÌý³ÌÐòÆô¶¯Ê§°ÜÁË£¬±¨1067´íÎó
ÎÒÔÚtnsnames.oraÀïÃæ°Ñhost¸Ä³ÉÁËÏÖÔÚµÄIPµØÖ·»¹ÊDz»ÐÐ
Ôõô½â¾ö£¿
»¹ÓÐÄܲ»Äܲ»ÓÃIPѽ£¬²»È»Ã¿´ÎIP±äÁ˶¼³öÏÖÕâÖÖÇé¿ö
ÄѵÀ²»ÄÜÓÃlocalhostÂð£¿
ÄÜÓÃlocalhost£¬µ«ÊÇÒ»°ã²»Óã¡
&nb ......
ÔÀ´µÄ¿âÊÇoracleµÄ£¬ÏÖÔÚ»»³ÉSQLµÄÁË£¬Òª°ÑÔÀ´µÄÊý¾Ýµ¼¹ýÀ´£¬¸ßÊÖ°ï°ï°¡
ÊÇSQL server°É£¿ÎÒÒ²²»¶®¡£
²»¹ý£¬ÎÒÖªµÀoracle¿ÉÒÔµ¼³öÊý¾ÝΪcsvÎļþ£¬È»ºóÈçºÎµ¹½øsqlserver¾Í²»ÖªµÀÁË
´ò¿ªsqlserverµÄDTSµ¼Èëµ¼³ö¹¤¾ß,ÔÚÑ¡ÔñԴʱµÄÊý¾ÝÔ´ÖÐÑ¡ Oracle in OraHome92,È»ºó°´Ìáʾ×ö,µ±Ñ¡Ôñ°²×°Êý¾ÝÔ´Çý¶¯³ÌÐòʱѡOracle i ......
µ¼ÈëÃüÁîimp system/123@ORCL file=e:\db.dmp fromuser=mapuser touser=system
ÀïÃæÓд洢¹ý³ÌʲôµÄ£¬ÎÒÏë°ÑËüµ¼³ö£¬¶ÔÓ¦µÄÃüÁîÔõôдÄØ£¿
Ϊʲô°Ñ¿â½¨ÔÚsystemÏ£¬¶ø²»µ¥¶À´´½¨Óû§ÄØ£¿²»½â¡£ÄãÕâÑùµ¼³ö²»±¨´í£¿
ÊÇ¡¾ÄãÕâÑùµ¼Èë²»±¨´í£¿¡¿Ð´´íÁË¡£
ÒýÓÃ
ÊÇ¡¾ÄãÕâÑùµ¼Èë²»±¨´í£¿¡¿Ð´´íÁË¡£
ûÓб¨´íµÄ£¬Á¬¾¯¸æ¶ ......
Êý¾Ý¿âÖÐÓиö×Ö¶ÎQZFWÊÇvarcharÀàÐÍ£¬´æ·ÅµÄÊý¾Ý¸ñʽÊÇ"Êý×Ö±àºÅ"-"Êý×Ö±àºÅ" È磺0012-1345 ÏÖÔÚÎÒÏëÊäÈë¸öÌõ¼þa,ʹ×Ö¶ÎÂú×ã QZFWÖÐ'-'Ç°ÃæµÄÊý×Ö<= a <= QZFWÖС®-¡¯ºóÃæµÄÊý×Ö¡£¡£
ÎÒдµÄsqlÈçÏ£º55000ÊÇÌõ¼þa,,,
select * from (select to_number(substr(QZFW,0,instr(QZFW,'-')-1)) ......
´ó¼ÒºÃ£¬ÒòΪ¹¤×÷µÄÐèÒª£¬ÐèÒªÖªµÀÕâЩָ±ê¶ÔÓ¦µÄsqlÓï¾ä£¬±¾ÈËÊý¾Ý¿â·½ÃæÊǸö²ËÄñ£¬ËùÒÔ»¹Çë¸÷λ´óÏÀ°ï棡£¡
ÂÞÁгöµÄÖ¸±êºÜ¶à£¬´óÏÀÃÇÄÜд¼¸¸ö¾Íд¼¸¸ö£¬·Ç³£¸Ðл¡£
ÐÔÄÜ·½Ã棺
ÿСʱ¼ì²éµãµÄ´ÎÊý
ÿÃëÖÓ¿é¸Ä±äµÄ´ÎÊý
ÿÃëÖÓÈ¡¿éµÄ´ÎÊý
ÿÃëÖÓ¶ÔÊý¾Ý¿âÒýÇæµÄµ÷ÓôÎÊý
¼ì²éµãµÄƽ¾ù¼ä¸ôʱ¼ä£¨·ÖÖÓ£©
µ±Ç°µÄ½»Ò×Ê ......