import java.sql.Connection;
import java.sql.Date;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class QueryTest
{
private Connection con;
public static void main(String [] atgs)
{
QueryTe ......
Ê×ÏÈ£º¼ÒÀïµçÄÔ×°×ÅSQLServer ÊÇ×Ô¼ºµ½¼ÒÀïÒ²ÄÜ·½±ã¹¤×÷£¬Ç°¼¸Ì컹ºÃºÃµÄ£¬×òÌìÎÒÉÏSQL È´´ò²»¿ªÁË£¬µÇ¼²»ÉÏÈ¥£¬ÎÒÊÔ×Å»»saµÇ¼Ҳ²»ÐС£ÓÃwindowsµÇ¼»¹ÊÇÁ¬½Óʧ°Ü ±¨´íÊÇÕâÑùµÄ£º
ÔÚ½¨Á¢Óë·þÎñÆ÷Á¬½Óʱ³ö´í¡£ÔÚÁ¬½ÓSqlServer 2005ʱ£¬ÔÚĬÈÏÉèÖÃϵÄSqlserver²»ÔÊÐí½øÐÐÔ¶³ÌÁ¬½Ó¿ÉÄܻᵼÖ´Ëʧ° ......
--oracle ´¥·¢Æ÷£¬×ª sqlserver ÎÊÌâ
CREATE OR REPLACE TRIGGER TG_BU_TSTK_IMPORTITEM
BEFORE UPDATE ON TSTK_IMPORTITEM
FOR EACH ROW
DECLARE
VAR_LIBGOODCOUNT NUMERIC(12,2);
BEGIN
---ÔÚOracle ÊÇÓÐ:new. ´ú±íÊÇеÄÖµ£¬ :old ´ú±íÊǾɵÄÖµ£¬ ÎÒÀûÓÃÕâÁ½¸öÊýÀ´¸ü¸ÄÁíÍâÒ»¸öÊýÁ¿
---Çë ......
SQLSERVER¸½¼ÓÊý¾Ý¿âʱ´íÎó 5123 ÎÞ·¨Îª´ËÇëÇó¼ìË÷Êý¾Ý
ÍøÕ¾ÉÏËÑË÷һϿ´
ÓÃsa¸½¼þÊÔÊÔ
ÒýÓÃ
SQLSERVER¸½¼ÓÊý¾Ý¿âʱ´íÎó 5123 ÎÞ·¨Îª´ËÇëÇó¼ìË÷Êý¾Ý
ȨÏÞ²»¹»,ÓÃsa¸½¼Ó.
ѧϰ
xx
......
SqlServerÀïÒÑÓÐÒ»¸ö±í¸ñ×Ö¶ÎΪAºÍB£¬
excelÀïµÄÊý¾ÝÈçÏÂ
ÈçͼËùʾ£¬ÓÐһЩµ¥Ôª¸ñÊǺϲ¢µÄ£¬ÕâÖÖÇé¿öÒªÈçºÎдSQL°¡
×Ô¼º¶¥Ï£¡
ÕâÑù²»ÐаÉ
°ÑºÏ²¢µÄ¸ø·Ö¿ª°É
SQL code:
SELECT *
from openrowset('MICROSOFT.JET.OLEDB.4.0','Excel 5.0;HDR=YES;DATABASE=c:\aa.xls','select * from [sheet1 ......
ÈçºÎͬʱÁ¬½ÓÁ½¸ösqlserverÊý¾Ý¿â
×öÁ½¸öÊý¾Ý¿âÁ¬¾Í¿ÉÒÔÁË
ÒýÓÃ
ÈçºÎͬʱÁ¬½ÓÁ½¸ösqlserverÊý¾Ý¿â
ÊÇÈçºÎÁ¬½Ó¡£
End_rbody_60474109//-->
¸Ã»Ø¸´ÓÚ2009-10-19 10:39:55±»¹ÜÀíԱɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ
¾Ù±¨
¹ÜÀí
TOP
ayouori
......