ÔÚAccessµÄ²éѯÖÐÖ´ÐÐÏÂÃæµÄÓï¾ä,ÎÞЧ,ÌáʾÆÚ´ýselect ,updata ,...
CreateTble C=Answer N="»ØÌû±í"
(
C=ID T="INTEGER" P=No M=No N="񅧏" Z=false,
C=Question T="INTEGER" P=No M=No N="Ö÷Ìù" Z=false,
C=Content T="TEXT(50 ......
SQL£ºselect * from smfd_ForeighStockPoint where AddTime between '2010/5/26 8:30:05' and '2010/5/26 8:40:05'
oracleµÄÈÕÆÚ¸ñʽÊÇ¡®04-3Ô -10 10.32.04.460000 ÉÏÎ硯£¬ÇëÎÊÕâÑùÔõôд£¿£¿
to_dateº¯Êý
select * from smfd_ForeighStockPoint where AddTime between to_date('2010/5/26 8:30:05','yyyy/mm/dd ......
²éѯÓÐ3ÃÅÒÔÉÏ£¨°üÀ¨3ÃÅ£©¿Î³ÌÊÇ90·ÖÒÔÉÏ£¨°üÀ¨90£©µÄѧÉúѧºÅ¼°¿Î³ÌÊý ÀýÈ磺
ѧºÅ ÐÕÃû ¿Î³ÌÃû³Æ ¿Î³Ì³É¼¨
1 ÕÅÈý ÓïÎÄ 80
2 ÀîËÄ Êýѧ 90
3 ÍõÎå Ó¢Óï 90
д³ösqlÓï¾ä¼´¿É
select ѧºÅ,count(*) from
(select ѧºÅ,¿Î³ÌÃû³Æ from table_name
&nb ......
ÎÒÏë²éѯÊý¾Ý¿â±í ÖеÄËùÓм۸ñµÄ×ÜºÍ ²¢¸³Öµ¸øÒ»¸ö±äÁ¿ Ó¦¸ÃÔõÑù×ö
VBScript code:
<%
set rs_FriceSum=server.createobject("adodb.recordset")
sql="select * from sum(Goods_price) as [Sum] Cart where Cart.user_id="&session("user_id")&""
rs_ ......
create table student
(
s_id int,
s_name varchar(20),
s_age int
)
create table teacher
(
t_id int,
t_name varchar(20),
t_age int
)
create table si
(
t_id int,
s_id int
)
²éѯ³öËùÓÐÀÏʦ´ú¿ÎµÄÃû×Ö£¬ºÍÊýÁ¿£¬Ìõ¼þÊÇÀÏʦµÄÄêÁä´óÓÚ30£¬Ñ§ÉúµÄÄêÁäÊÇ´óÓÚ12
Ã²Ê ......
table1
id
01
02
...
table2
id registerdate
01 2010-02-27 22:49:26.633
02 2010-02-27 22:56:23.070
...
ÔÚtable1ÖÐÐÂÔöregdate ÁÐ
²¢°ÑregisterdateÁеÄÖµ²åÈë regdateÁÐÖÐ
SQL code:
--truncate table table1 --ɾ³ýtab ......