易截截图软件、单文件、免安装、纯绿色、仅160KB

Mysql Sql 语句求教

表 1  table1

    字段  t

记录      11000
          11001
          11002


表2  table2

    字段  t  type  time

记录    11000 0    8:43
        11000 1    8:43
        11000 0    9:40
        11000 1    9:40

        11001 0    8:43
        11001 1    9:30

        11002 0    8:20
        11002 1    9:10
        11002 0    10:30

希望去到结果如下

        11000  0  9:40
        11000  1  9: 40
        11001  0  8:43
        11001  1  9:30

        11002  0  10:30
        11002  1  9:10

意思是 table2 记录了一些变动过程, select的时候  选择type 里时间最新的那个记录,其他的舍弃

请教这个结果如何实现。谢谢。


selec


相关问答:

jsp链接sql2000的疑问?



type Exception report


message

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

exception

org.apache.jas ......

mysql如何实现高效的搜索?

一个行业网站,要实现的功能要求为:

一搜索表单可选搜索 产品/资讯/商家,搜索时希望先搜标题后全文,当前的数据量估计3万多,定位期望在百万级也可用。

数据类型为innodb,当前的方法是对关键词进行 ......

MySql问题

MySql中插入当前时间的该怎么写啊?
now()

SQL code:

sql里是:
getdate()

引用
now()


学习

SQL code:
select now();

SQL code:
TODAY()
?

SQL code:
select now();
/* ......

mysql 导致死机

环境:win2003 apache2 resin3 php5 mysql5
mysql错误里出现这个,服务器直接死到那里。
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_log ......

mysql储存过程的问题

我现在学习MYSQL,问下mysql储存过程如何建立和使用,最好写成$sql="sql语句",$re=mysql_query($sql);谢谢
建议你先自己看一下文档中的例子。

http://dev.mysql.com/doc/refman/5.1/zh/stored-pro ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号