select * into basetable_copy from basetable

解决方案 »

  1.   

    忘记了还有一个问题,如果想把一个有image类型的sql server2000表中的数据导入到一个和他结构完全相同,但是是asa或者ase的数据库中的表,用语句如何实现啊,请指教
      

  2.   

    select * into basetable_copy from basetable
    问题2.
    select * into asa..basetable_copy from basetable
      

  3.   

    use northwindselect lastname,photo into tmp from employees   -- photo是image类型insert tmp  select firstname,photo from employeesselect * from tmp
      

  4.   

    --用脚本的方法生成的结构最完整查询分析器
    --左侧的对象浏览器(没有的话按F8)
    --右键你要复制的表
    --在新窗口中编写对象脚本
    --创建
    --将生成脚本的表名改为你的新表名
    --选择数据库
    --按F5执行然后用下面的语句导入结构:
    insert into asa..basetable_copy select * from  basetable
      

  5.   

    然后用下面的语句导入数据:
    insert into asa..basetable_copy select * from  basetable
      

  6.   

    asa或者ase的数据库?这个不知道,是什么啊?
      

  7.   

    asa和ase都是sysbase的数据库系统啊。asa是单机的ase是服务器版的
      

  8.   

    select * into basetable_copy from basetable where 1 = 1 有数据
    select * into basetable_copy from basetable where 1 = 0 无数据
      

  9.   

    大家好象把asa或者ase当成还是sql server中的数据库名了吧?
      

  10.   

    那就要通过SQL的数据导入/导出功能了.
      

  11.   

    有个什么opensource的函数不行吗??我都建立了数据源了的