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

¹ØÓÚSQL²éѯÓï¾ä



ÈçÉÏ£¬ÎÒÏ뽫±í¸ñÖС°´úÂ롱ÁÐÖÐǰÈýλΪ¡°000¡±µÄËùÓÐÐÐÈ«²¿ÕÒ³öÀ´£¬ÓÃSQLÔõôд°¡
Êý¾ÝÊÇ´æÔÚACCESSÖеÄ

select * from table where [´úÂë] like '000%'

VB code:

Private Sub Cmd1_Click()
Dim i As Integer
Dim s As String

recset.Close '¹Ø±Õ¼Ç¼¼¯
s = "select * from ¹ÉƱ where [´úÂë] like '000%'"

Set recset = db.OpenRecordset(s) '´ò¿ª¼Ç¼¼¯

Form1.MSHFlexGrid1.FormatString = "^ÐòºÅ|< ´ú Âë |< Ãû ³Æ|<¼Û ¸ñ|>»õ ±Ò ×Ê ½ð|>³¤ ÆÚ ¸º Õ®|> ×Ü ¹É ±¾ |>Á÷ ͨ ¹É ±¾|>¾»ÏÖ½ð¼ÛÖµ(×Ü)|>¾»ÏÖ½ð¼ÛÖµ(Á÷)|>±¶ Êý|>±¸ ×¢"

Form1.MSHFlexGrid1.rows = 1

For i = 1 To Form1.MSHFlexGrid1.rows - 1
Form1.MSHFlexGrid1.TextMatrix(i, 0) = i
Next

i = 0
With recset
Do While Not .EOF
i = i + 1
Form1.MSHFlexGrid1.TextMatrix(i, 1) = !´úÂë
Form1.MSHFlexGrid1.TextMatrix(i, 2) = !Ãû³Æ
Form1.MSHFlexGrid1.TextMatrix(i, 3) = !¼Û¸ñ
Form1.MSHFlexGrid1.TextMatrix(i, 4) = !»õ±Ò×ʽð
Form1.MSHFlexGrid1.TextMatrix(i, 5) = !³¤ÆÚ¸ºÕ®
Form1.MSHFlexGrid1.TextMatrix(i, 6) = !×ܹɱ¾
Form1.MSHFlexGrid1.TextMatrix(i, 7) = !Á÷ͨ¹É±¾
Form1.MSHFlexGrid1.TextMatrix(i, 8) = !¾»ÏÖ½ð¼ÛÖµ×Ü


Ïà¹ØÎÊ´ð£º

SQLÓï¾äЧÂÊÎÊÌâ - ÆäËûÊý¾Ý¿â¿ª·¢ / ÆäËûÊý¾Ý¿â

´ó¼Ò°ïæ¿´¿´Õâ2¸ösqlÓï¾äÄĸö²éѯµÄËٶȸü¿ìµã¡£Ð»Ð»°ïæ¡£±È½Ï׿±¡£ÔÚ×öÐÔÄܲâÊÔ¡£
select * from
  ±íA LEFT OUTER JOIN ±íB ON (±íA.id || ' ' =±íB.id) ,±íC , ±íD, ±íE
WhereÆäËûÌõ¼þ
select * ......

ÐÂÉú£¬Win7£¬¸ÃÑ¡Ôñʲô°æ±¾SQL£¿

СµÜÕý×¼±¸×Ô¼ºÌáǰѧϰÊý¾Ý¿â£¬µ«ÊÇÏÖÔÚÓиöÎÊÌ⣬²»ÖªµÀ¸ÃÑ¡Ôñʲô°æ±¾µÄSQL

ѧУÒÔºóµÄÊéºÃÏñ½²SQLÓõÄÊÇSQL 2000£¬µ«ÊÇÎÒµÄϵͳÊÇWindows 7£¬Ã²ËƲ»ÄÜ×°£¬Ò²²»Ïë»»»ØXP£¨07Äê¾Í²»ÓÃXPÀ²£©£¬ËùÒÔÔÚÏ룬ÄÜ· ......

SQLÃÔ»ó

CREATE TABLE [Test_xcmtmp] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[subject] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[Sourc ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

ÇóÒ»Ìõoracle¶à±í²éѯµÄsql£¬Çó¸ßÊÖÃDz»ÁߴͽÌ~

table1:
uID    uName
1      СÀî 
2      СÕÅ

table2:
pID  uID  type
1    1    H1
2    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ