select
LEFT ('一把刀把|YBDB', locate( '|','一把刀把|YBDB' ) - 1 ) '前面',
substr( '一把刀把|YBDB', locate( '|', '一把刀把|YBDB' ) + 1, octet_length( '一把刀把|YBDB' ) ) '后面'
substr(‘’,‘’,‘’)从竖线取值到结尾
locate( ‘|’, ‘一把刀把|YBDB’ )竖线位置
octet_length( ‘一把刀把|YBDB’ )字符长度