記得有人問過
P001
P002
P003
EST001
EST002
EST003
自動生成的號碼 加開頭 字母 SQL 搞定
复制代码复制代码
- select 'p'+ convert(nvarchar,ProductIDN) as ss from Products
mssql 罷了 mysql 我沒試過
goodday 发表于 2010-5-6 11:09 PM
去字
SELECT (substring(PurchaseOrderCode,4,10))
FROM [tblPurchase]
PO0001 變 0001
nvar ...
goodday 发表于 2010-5-7 12:05 AM
欢迎光临 JBTALKS.CC (https://www.jbtalks.cc/) | Powered by Discuz! X2.5 |