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

📄 6440.html

📁 VB技巧问答10000例 VB技巧问答10000例
💻 HTML
字号:
<html>
  <head>
    <title>请问以下SQL程序有何错误</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>请问以下SQL程序有何错误</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:hylhoung@ms1.hinet.net">孤帆</a> on October 13, 1998 at 14:28:48:<p>
<br>CREATE PROCEDURE UPDATE_TDUTYRCD<br> (@d1 char(7),@d2 char(5),@d3 char(5))<br>AS<br>  select employee,sum(hour88) as hour<br>         into #tday<br>         from t_transduty <br>         where convert(char(8),date,112) like @d1<br>          and  type = '5'  <br>         group by employee<br>  <br>  select t_dutyrcd.employee,(already + hour) as aa<br>         into #tday2<br>         from t_dutyrcd join #tday on t_dutyrcd.employee=#tday.employee<br>         where date=@d2  <br>  <br>  update t_dutyrcd set already=aa <br>         where t_dutyrcd.employee=#tday2.employee <br>         and t_dutyrcd.date=@d3<br>  <br>RETURN<p>GO<p>错误讯息如下:<br>ERROR 107:[SQL Server] The coiumn prefix '#tday2' does not match<br>      with a table name or alias name used in the query.
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 6440-->
<!--top: 6442--><li><a href="6442.html">Re: 请问以下SQL程序有何错误</a> <b>大头</b> <i>16:54:32 10/13/98</i>
(<!--responses: 6442-->0)
<ul><!--insert: 6442-->
</ul><!--end: 6442-->
</ul><!--end: 6440-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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