We need to split a data column when doing the requirement and check the code on the Internet. Unfortunately, it is not easy to use. Simply write a demo by yourself. SELECTsubstring (columnname, 0, CHARINDEX (, a) asfirststr, substring (columnname, CHARINDEX (, columnname) + 1, len (columnname)-CHARIND
We need to split a data column when doing the requirement and check the code on the Internet. Unfortunately, it is not easy to use. Simply write a demo by yourself. SELECT substring (columnname, 0, CHARINDEX ('/', a) as firststr, substring (columnname, CHARINDEX ('/', columnname) + 1, len (columnname) -CHARIND
We need to split a data column when doing the requirement and check the code on the Internet. Unfortunately, it is not easy to use. Simply write a demo by yourself. Xi <无>
SELECT substring(columnname,0,CHARINDEX('/',a)) as firststr,substring(columnname,CHARINDEX('/',columnname)+1,len(columnname)-CHARINDEX('/',columnname)) as secondstr FROM talbename