ITeye博客

mysql substring_index

kidd · 2012-02-16 16:02 · 随便记的、没啥用 · 数据库 · Markdown

select * from table;

select substring_index(column,":",2) from table;

select position(':' in column) from table;

select substring(column,position(':' in column),5) from table;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。