摘要:
设置该控件的hideSelection属性为fales。即可实现。该问题自己实现还挺麻烦的。 阅读全文
摘要:
数据库中的0和1(tinyInt)对应于程序的trur和false无法完成类型转换完成,可以用:case "System.Boolean":if (value.ToString() == "1" || value.ToString() == "0"){value=(value.ToString()=="1"?true:false);}else{value = bool.Parse(value.ToString());}break; 阅读全文
摘要:
SELECT [stuid] ,[stuno] ,[name] ,[sex] ,[age] ,[address] ,[telphone] FROM [UFMeta_001].[dbo].[Student]GOINSERT INTO student VALUES (101,'zhangsan','zhangsan',0,13,'zhangsan','zhangsan')INSERT INTO student VALUES (102,'wangwu','zhangsan',0,13,'zhang 阅读全文
摘要:
事物执行后是可以回滚的,但是commit了就不能回滚了。GOCREATE TABLE ValueTable ([value] int)GODECLARE @TransactionName varchar(20) = 'Transaction1';--These statements start a named transaction,--insert a two records, and then roll back--the transaction named in the variable BEGIN TRAN @TransactionName INSERT INTO Va 阅读全文