ruilog
Notebook
Blog
About
Content Explore
《SQL Cookbook》
Published : 2008-11-12
Categories :
Software
Tags :
SQL
DB2
MySQL
Oracle
PostgreSQL
Database
Cookbook
O'Reilly
MSSQL
Read
来自 O'Reilly 的Cookbook系列,很多人将其翻译成“锦囊妙计”系列。
这本书应该有 100+ 妙计吧,分别提供 Oracle,MySQL,PostgreSQL,SQL Server,DB2 五种流行的解决方案,涉及到查询、插入、更新、删除、多表操作、排序、字符串处理、时间操作、报表、数据仓库运算、分层查询、常用窗口函数...
才发现... 以前处理的一些个问题真龌龊
!-_-
O'R...
从字符串中删除不需要的字符[SQL]
Published : 2007-12-21
Categories :
Tech
Tags :
Replace
Translate
SQL
DB2
MySQL
SQL Server
Oracle
PostgreSQL
O'Reilly , SQL Cookbook
by Antbony Molinaro
解决方案:replace(), translate()
DB2
select ename,
replace(translate(ename, 'aaaa', 'AEIOU'), 'a', '') stripped1,
sal,
replace(cast(sal as char(4)), '0', '') str...
1
Categories
All
Other
Private
School
Software
Tech
SmartKit
Marathon
Trip
Relax
Life