打算发展www.ntsky.com,而短期内不会发展 chinascripts.com为技术站了。

所以将原来的chinascripts.com的链接换成www.ntsky.com,使用了mysql的REPLACE函数完成。

update t_content set source=REPLACE(source,'chinascripts','ntsky');
Continue reading "mysql replace 函数"
Tags: mysql函数 Category: 数据库
Posted on 2007-09-25 12:13:49 reader (850) | Comments (3)
一般的相等连接:
select * from a, b where a.id = b.id;
这个就属于内连接。

对于外连接:
Oracle中可以使用“(+) ”来表示,9i可以使用LEFT/RIGHT/FULL OUTER JOIN
Continue reading "Oracle内连接和外连接"
Posted on 2007-09-19 17:03:21 reader (788) | Comments (0)

SQL>; select * from v$version
  2  ;

BANNER
----------------------------------------------------------------
Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
PL/SQL Release 9.2.0.6.0 - Production
CORE    9.2.0.6.0       Production
TNS for Solaris: Version 9.2.0.6.0 - Production
NLSRTL Version 9.2.0.6.0 - Production

SQL>;

Continue reading "查询oracle数据库的版本"
Tags: oracle Category: 数据库
Posted on 2007-07-17 14:01:08 reader (765) | Comments (0)