ÎÒµÄSQL֮·2
ÖÁ½ñδÓгɾͣ¬Éõ¸ÐáÝáå¡£
²¢²»ÊǺÜͻȻµÄÏëѧSQL£¬¶øÊÇÔÚ֮ǰ˵µÄÄÇÑù£¬ÔÚÎÒÈÆÁËÒ»´óȦ֮ºó£¬²ÅÖªµÀ×Ô¼ºÒ²ÊÇÒ»ÎÞËùÖª£¬Í÷ѧÁËÕâô¶àÄê¡£
ÎÒÒ»Ö±ÏëÍÑÀëѧУµÄ½ÌÓýģʽÀ´×Ôѧ£¬È»¶øÎÒ²¢²»³ÐÈÏѧУµÄ½ÌÓý·½Ê½ÊÇÒ»ÎÞËùÓõģ¬ÖÁÉÙѧµ½µÄ¶«Î÷ÊÇʵÔڵġ£´ÓѧУµÄ½Ç¶ÈÀ´¿¼ÂÇ£¬ÕâÑùµÄ°²ÅŵÄÈ·¿´ËÆÍêÃÀ¡£È»¶ø£¬½á¾ÖÒ»Èç¼ÈÍùµÄ±¯¾ç£¬ÎÒÃǽ«³ÉΪ¼¸°ÙÍò±ÏÒµ¼´Ê§ÒµµÄ´ó¾üÖеÄÒ»Ô±¡£
ÎÒ²»ÊÇ·ßÇ࣬²»Ì¸ÂÛÊÇ·Ç¶Ô´í¡£²¢·Ç²»Ïë̸£¬¶øÊÇÎÞ¼ÃÓÚÊ¡£
ÎÒ²»ÊÇÌì²Å£¬µ«ÎÒ²»ÈÏΪÎÒÊÇ´À²Ä¡£
֮ǰµÄ×ÔѧºÜ²»¼û³ÉЧ£¬ÉËÐÄÖ®Ó౶ÔâA¸¨µ¼Ô±ÍÚ¿à¡£ÎÒƽÉúÍ·´ÎÒ»¸ÄºÃѧÉúÃæ¿×£¬ÔÚ½ÌÊÒÍâ´ó³³Ò»¼Ü£¬Ö®ºó£¬Ö»ÓÐƽ¾²¡£
ÎÒ¸Ã×öʲô£¬²»¸Ã×öʲô£¬ÎÒ¸ÃÔõô×ö£¬ÎÒ»áºÃºÃµÄÏëÒ»Ïë…
Ïà¹ØÎĵµ£º
1.hqlÓësqlµÄÇø±ð
sql ÃæÏòÊý¾Ý¿â±í²éѯ
hql ÃæÏò¶ÔÏó²éѯ
hql £º from ºóÃæ¸úµÄ ÀàÃû£«Àà¶ÔÏó where ºó Óà ¶ÔÏóµÄÊôÐÔ×öÌõ¼þ
sql£º from ºóÃæ¸úµÄÊDZíÃû where ºó ÓñíÖÐ×Ö¶Î×öÌõ¼þ
²éѯ
&nbs ......
Ò», °²×° unixODBC
ÏÂÔØ°²×°°ü. ÔÚ RedHat °²×°¹âÅÌÉϾÍÓÐ
unixODBC-2.2.11-1.RHEL4.1.i386.rpm
unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm
unixODBC-kde-2.2.11-1.RHEL4.1.i386.rpm
°²×°
rpm -Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpm
rpm -Uvh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm
Èç¹û°²×°ÖÐÌáʾÓжÔÆäËü° ......
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
go
ALTER PROCEDURE [dbo].[sp_GetRecordfromPage]
@TableName varchar(350), --±íÃû
@Fields varchar(5000) = '*', --×Ö¶ÎÃû(È«²¿×Ö¶ÎΪ*)
@OrderField varchar(5000), &nbs ......
SqlÁ¬½Ó²éѯºÍÁªºÏ²éѯ
Á¬½Ó²éѯ
ͨ¹ýÁ¬½ÓÔËËã·û¿ÉÒÔʵÏÖ¶à¸ö±í²éѯ¡£Á¬½ÓÊǹØϵÊý¾Ý¿âÄ£Ð͵ÄÖ÷ÒªÌص㣬ҲÊÇËüÇø±ðÓÚÆäËüÀàÐÍÊý¾Ý¿â¹ÜÀíϵͳµÄÒ»¸ö±êÖ¾¡£
ÔÚ¹ØϵÊý¾Ý¿â¹ÜÀíϵͳÖУ¬±í½¨Á¢Ê±¸÷Êý¾ÝÖ®¼äµÄ¹Øϵ²»±ØÈ·¶¨£¬³£°ÑÒ»¸öʵÌåµÄËùÓÐÐÅÏ¢´æ·ÅÔÚÒ»¸ö±íÖС£µ±¼ìË÷Êý¾Ýʱ£¬Í¨¹ýÁ¬½Ó²Ù×÷² ......