1. 程式人生 > >sql語句中的擷取

sql語句中的擷取

select (case when len(address)>20 then substring(address,0,19)+'...'
ELSE address END) as address
from company