易截截图软件、单文件、免安装、纯绿色、仅160KB

SQL中如何用一个表更新另一个表

for ACCESS :
update a, b set a.name=b.name1 where a.id=b.id
for SQL Server:
"update a set a.name=b.name1 from a,b where a.id=b.id"
update   a   set   a.status=b.status  
  from   table1   a,table2   b  
  where   a.id1=b.id1  
update a inner join b on a.a1=b.b1 set a.a2=b.b2条件
update   table1   set   a.status   =   b.status  
  from   table1   a   inner   join   table2   b    
  on   a.idl   =   b.idl
http://topic.csdn.net/t/20041013/14/3451961.html
http://www.cnblogs.com/hanguoji/archive/2007/02/01/636723.aspx


相关文档:

java将excel单元格数据转换成sql语句

首先要有jxl类库。
程序如下:
import java.io.*;
import jxl.*;
public class ExcelToSql {
  public static void main(String args[])
  {
   try
   {
    Workbook book= Workbook.getWorkbook(new File("D:\\workspaceuse6\\foundation\\test\\com\\gres ......

sql语句查询表的字段名

select name from syscolumns where id in (select id from sysobjects where type = 'u' and name = '相应表名')  
用以上sql语句输入相应表名就可以查到表的字段名,对应好数据库 查询是否存在该表语句
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[tb_cost]') and OBJECTPROPER ......

sql xml 入门

*
sql xml 入门:
    --by jinjazz
    --http://blog.csdn.net/jinjazz
   
    1、xml:        能认识元素、属性和值
   
    2、xpath:    寻址语言,类似wind ......

SQL之七——数据类型,流控

SQL2000的数据类型及长度
==============================
bigint 8
binary 8000
bit 1
char 8000
datetime 8
decimal 17
float 8
image 16
int 4
money 8
nchar 8000
ntext 16
numeric 17
nvarchar 8000
real 4
smalldatetime 4
smallint 2
smallmoney 4
sql_variant 8016
sysname 256
text 16
tim ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号