set @Year = Year(getdate())
set @Month = Month(getdate())
set @Day = Day(getdate())
set @NewBatchCode =Cast( @Year * 10000 + @Month * 100 + @Day as varchar(16))批号管理
set @Month = Month(getdate())
set @Day = Day(getdate())
set @NewBatchCode =Cast( @Year * 10000 + @Month * 100 + @Day as varchar(16))批号管理
解决方案 »
- wwDBGrid的title无法显示
- 《Delphi5开发人员指南》--有传说中的那么好吗?
- 请教大家:如何避免调用动态连接库中可视控件的报错?
- 关于多层问题出现 'RPC服务器不可'
- 在从数据库中提取大量数据时,如何终止提取线程?
- 我在本机上创建了一个SQL Server 2000的数据库,怎样用TQuery去访问这个数据库?
- 请教一个SQL语句
- 使用WIN2000SERVER 的RAS 服务一定要通过internet吗?可直接拨服务器吗
- 如何使popmenu的项menuitem不都显示出来?
- 高手请进,报表问题,100分相送,在线等待,在线加分,分多的是,还可在加
- 调用Active组件的问题
- 这个用的是什么组件,如果是listview是怎样达到这样的效果的
declare @year int
declare @month int
declare @day int
declare @newBatchcode varchar(16) set @Year = Year(getdate())
set @Month = Month(getdate())
set @Day = Day(getdate())
set @NewBatchCode =Cast( @Year * 10000 + @Month * 100 + @Day as varchar(16))
select @newbatchcode
/*
(沒有資料行名稱)
20090209
*/