1. SQL将一个表中的某一列值全部插入到另一个表中 插入的话: insert into a(col) select col from b; 更新的话: update a set col=select col from b where a.id=b.id; 判断表是否存在数据库中,存在就删除 if exists (select * from Sysobjects where name='temp') begin drop table temp end insert into a(columen…
自定义多选MultiCombox,可以实现下拉列表多选 using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; namespace MES.Plugin.Report.Controls { public…
create trigger 触发器名称 on 对哪个表起作用 after insert,update as return set nocount on begin transaction; insert into 表名 (col1,col2,col3,...) select inserted.col1,inserted.col2,inserted.col3,... inserted where 语句 begin ,,@@error) rollback transaction; return e…
整理之前的代码,发现有一个js,就是页面往下浏览时,上面的商品名称和购买按钮在页面上方悬浮的,就整理下来,代码如下: <script type="text/javascript"> window.onload = function () { //var nav =$("#divnav"); var nav = document.getElementById('divnav'); window.onscroll = function () { var to…