假设2016-01-01这话日期在单元格A1输入公式B1=VALUE(TEXT(YEAR(A1)&MONTH(A1)&DAY(A1),0))问题搞定纯手打,望采纳
SQLserver用逗号隔开的数据如何改为分行
if object_id('tempdb.dbo.#tb') is not null drop table #tb
go
create table #tb (id int,price varchar(100),customer int,cinvcode int)
insert into #tb
select 1,'1.5',4,2 union all
select 2,'3.5,6',3,2 union all
select 3,'2.5,3',6,1 union all
sqlserver字符串拆分(split)方法汇总
http://www.cnblogs.com/aierong/archive/2008/11/19/sqlserver_split.html
看下这个教程吧。
SQLserver用逗号隔开的数据如何改为分行
就是要对字符串进行分割 split ,
SQL 没有此功能,需要自己写的
SELECT*fromtable1wherenamein(select''''+replace('aaa;bbb;ccc;ddd',';',''',''')+'''')