⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 月光软件站 - 编程文档 - 数据库 - sql语句导入导出大全.htm

📁 SQL语句导入导出大全
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0038)http://www.moon-soft.com/doc/44947.htm -->
<HTML><HEAD><TITLE>月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=数据库,SQL语句导入导出大全,编程,文章,下载 name=keywords>
<META content=SQL语句导入导出大全 name=description>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<CENTER>
<SCRIPT src="月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全.files/top.js" 
type=text/javascript></SCRIPT>
</CENTER>
<DIV id=header align=center>
<CENTER>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=750 
border=0>
  <TBODY>
  <TR>
    <TD width="100%">您的位置:<A href="http://www.moon-soft.com/">首页</A>-&gt; <A 
      href="http://www.moon-soft.com/doc/index.htm">编程文档</A>-&gt; <A 
      href="http://www.moon-soft.com/doc/8_1.htm">数据库</A>-&gt; 
  SQL语句导入导出大全</TD></TR></TBODY></TABLE></CENTER></DIV>
<DIV id=main align=center>
<CENTER>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 
cellPadding=0 width=750 border=0>
  <TBODY>
  <TR>
    <TD vAlign=top width=165>
      <TABLE style="BORDER-COLLAPSE: collapse" height="100%" cellSpacing=0 
      cellPadding=0 width=165 bgColor=#f4f4f4 border=0>
        <TBODY>
        <TR>
          <TD vAlign=top width="100%">
            <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=3 
            width="100%" border=0>
              <TBODY>
              <TR>
                <TD width="100%" bgColor=#000000>
                  <P align=center><B><FONT 
color=#ffffff>数据库</FONT></B></P></TD></TR>
              <TR>
                <TD width="100%">
                  <P align=center></P></TD></TR>
              <TR>
                <TD width="100%" bgColor=#000000>
                  <P><IMG height=13 
                  src="月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全.files/d_1.gif" width=13 
                  align=middle border=0><FONT color=#ffffff> 
                本类阅读TOP10</FONT></P></TD></TR>
              <TR>
                <TD width="100%">·<A 
                  href="http://www.moon-soft.com/doc/44969.htm">SQL语句导入导出大全</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44946.htm">SQL 
                  Server日期计算</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44947.htm">SQL语句导入导出大全</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44726.htm">SQL to Excel 
                  的应用</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/45049.htm">Oracle中password 
                  file的作用及说明</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44962.htm">MS SQLServer 
                  OLEDB分布式事务无法启动的一般解决方案</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/43215.htm">sqlserver2000数据库置疑的解决方法</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/45044.htm">一个比较实用的大数据量分页存储过程</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44948.htm">如何在正运行 SQL 
                  Server 7.0 的服务器之间传输登录和密码</A><BR>·<A 
                  href="http://www.moon-soft.com/doc/44973.htm">SQL中两台服务器间使用连接服务器</A><BR></TD></TR></TBODY></TABLE><BR>
            <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=3 
            width="100%" border=0>
              <TBODY>
              <TR>
                <TD width="100%" bgColor=#111111><FONT color=#ffff00>→</FONT> 
                  <FONT color=#ffffff>分类导航</FONT></TD></TR>
              <TR>
                <TD width="100%">
                  <TABLE cellSpacing=3 cellPadding=0 width="99%" border=0>
                    <TBODY>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/1_1.htm"><FONT 
                        color=#000000>VC语言</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/2_1.htm"><FONT 
                        color=#000000>Delphi</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/3_1.htm"><FONT 
                        color=#000000>VB语言</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/4_1.htm"><FONT 
                        color=#000000>ASP</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/5_1.htm"><FONT 
                        color=#000000>Perl</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/6_1.htm"><FONT 
                        color=#000000>Java</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/7_1.htm"><FONT 
                        color=#000000>Script</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/8_1.htm"><FONT 
                        color=#000000>数据库</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/9_1.htm"><FONT 
                        color=#000000>其他语言</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/10_1.htm"><FONT 
                        color=#000000>游戏开发</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/11_1.htm"><FONT 
                        color=#000000>文件格式</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/12_1.htm"><FONT 
                        color=#000000>网站制作</FONT></A></TD></TR>
                    <TR align=middle>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/13_1.htm"><FONT 
                        color=#000000>软件工程</FONT></A></TD>
                      <TD width="50%"><A 
                        href="http://www.moon-soft.com/doc/14_1.htm"><FONT 
                        color=#000000>.NET开发</FONT></A></TD></TR></TBODY></TABLE>
                  <TABLE cellSpacing=3 cellPadding=0 width="99%" border=0>
                    <TBODY>
                    <TR align=middle>
                      <TD>
                        <FORM action=search.asp><INPUT 
                        style="BORDER-RIGHT: #42a5f7 1px dotted; BORDER-TOP: #42a5f7 1px dotted; BORDER-LEFT: #42a5f7 1px dotted; BORDER-BOTTOM: #42a5f7 1px dotted" 
                        size=12 name=k> <INPUT type=image 
                        src="月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全.files/d_search.gif" 
                        align=absMiddle value=submit border=0><INPUT type=hidden 
                        value=info name=type></FORM></TD></TR></TBODY></TABLE>
                  <SCRIPT 
                  src="月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全.files/js_ads_left.js" 
                  type=text/javascript></SCRIPT>
                </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
    <TD vAlign=top width=8 
    background="月光软件站 - 编程文档 - 数据库 - SQL语句导入导出大全.files/bg_shadow.gif" 
    bgColor=#ffffff></TD>
    <TD vAlign=top width=595 height=2>
      <TABLE style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse" 
      cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD class=article_title align=middle 
        height=30><B>SQL语句导入导出大全</B></TD></TR>
        <TR>
          <TD align=middle width="100%" bgColor=#888888 height=1></TD></TR>
        <TR>
          <TD width="100%" height=2></TD></TR>
        <TR>
          <TD width="100%" height=38>
            <P align=center><B>作者</B>:未知 <B>来源</B>:月光软件站<!--未知--> 
            <B>加入时间</B>:2005-2-28 月光软件站</P></TD></TR>
        <TR>
          <TD vAlign=top width="100%">
            <P>/*******&nbsp; 导出到excel <BR>EXEC master..xp_cmdshell ’bcp 
            SettleDB.dbo.shanghu out c:\temp1.xls -c -q -S"GNETDATA/GNETDATA" 
            -U"sa" -P""’ </P>
            <P>/***********&nbsp; 导入Excel <BR>SELECT * <BR>FROM OpenDataSource( 
            ’Microsoft.Jet.OLEDB.4.0’, <BR>&nbsp; ’Data 
            Source="c:\test.xls";User ID=Admin;Password=;Extended 
            properties=Excel 5.0’)...xactions </P>
            <P><BR>SELECT cast(cast(科目编号 as numeric(10,2)) as nvarchar(255))+’ ’ 
            转换后的别名 <BR>FROM OpenDataSource( ’Microsoft.Jet.OLEDB.4.0’, 
            <BR>&nbsp; ’Data Source="c:\test.xls";User 
            ID=Admin;Password=;Extended properties=Excel 5.0’)...xactions </P>
            <P>/** 导入文本文件 <BR>EXEC master..xp_cmdshell ’bcp "dbname..tablename" 
            in c:\DT.txt -c -Sservername -Usa -Ppassword’ </P>
            <P>/** 导出文本文件 <BR>EXEC master..xp_cmdshell ’bcp "dbname..tablename" 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -