producer =coroutine.create(function () --生产者 while true do local x = io.read() --生产新的值 send(x) --发送给消费者 endend)fun...
分类:
其他好文 时间:
2015-01-22 20:12:38
阅读次数:
148
mysql数据库,创建这个表DROP TABLE IF EXISTS `t_errorlog`;CREATE TABLE `t_errorlog` ( `rowid` int(11) NOT NULL AUTO_INCREMENT, `log_date` datetime DEFAULT NULL ...
分类:
Web程序 时间:
2015-01-22 20:02:25
阅读次数:
192
1.多列建立索引SQL> create index dex_index2 on dex(sex,name);Index created.SQL> select object_name,object_type from user_objects;OBJECT_NAME ...
分类:
数据库 时间:
2015-01-22 20:02:07
阅读次数:
220
--[[协同程序的四种状态挂起(suspended)、运行(running)、死亡(dead)和正常(normal)status yield --挂起程序coroutine.create(function(a, b, c) --coroutine.resume(co, 1, 2, 3) 分别把1,....
分类:
其他好文 时间:
2015-01-22 19:54:41
阅读次数:
165
1、函数--drop function getMaxDate; create FUNCTION getMaxDate (y int, m int )returns datebegin DECLARE maxDate date ; select max(dateid ) into ma...
分类:
数据库 时间:
2015-01-22 19:49:33
阅读次数:
251
当表里面有数据时,怎么把表里的数据转换为insert 语句(从别人那里看来的用SQLServer 2008 R2测试可用)CREATE PROC spGenInsertSQL @TableName AS VARCHAR(100)ASDECLARE xCursor CURSORFORSELECT NA...
分类:
其他好文 时间:
2015-01-22 19:48:01
阅读次数:
174
REPORTZ_CREATE_PR.DATA:BEGINOFGT_DATA1OCCURS0,BSARTTYPESTRING,"凭证类型BNFPOTYPESTRING,"项目*KNTTPTYPESTRING,"科目分配类别MATNRTYPESTRING,"商品代码*TXZ01TYPESTRING,"短...
分类:
其他好文 时间:
2015-01-22 19:44:43
阅读次数:
207
CREATE FUNCTION [dbo].[f_num_chn] (@num numeric(14,2))
RETURNS varchar(100) WITH ENCRYPTION
AS
BEGIN
--版权所有:pbsql
DECLARE @n_data VARCHAR(20),@c_data VARCHAR(100),@n_str VARCHAR(10),@i int
...
分类:
数据库 时间:
2015-01-22 18:02:48
阅读次数:
181
5、NUMBER
用于存储零、正数、定长负数以及浮点数。NUMBER 数据类型可以以 NUMBER(P,S)的
形式来定义数字的精度和范围。 这里:p 表示精度 (1-38),它表示存储在列中数
字的总长度是 p 位: s 表示范围,它表示小数点后的位数。该取值范围可以从-84 到 127 。例如:
CREATE TABLE test
(name number(5))
使用精度 5 来...
分类:
数据库 时间:
2015-01-22 18:01:45
阅读次数:
200
The major integration is in MRP............ During MRP how the system should create procurement proposals..MM & PP is integrated in follwoing ways :1....
分类:
其他好文 时间:
2015-01-22 17:13:34
阅读次数:
103