Alice198 发表于 2007-8-3 15:27:11

怎么写关键字字段,sysbase的分隔标识符是啥?

<p>我有一个表的字段名就是Timestamp,然后我想取出昨天的数据,我的SQL是这样的</p><p>select * from 表A where datediff(dd,Timestamp,getdate())=1</p><p>但是,Timestamp是sysbase的关键字,我应该怎么标记呢,就像SQL里用[]。我尝试了'',""都不行。哭啊,拜托各位了</p>

ehxz 发表于 2007-8-3 17:43:09

建议还是修改这个字段名吧,估计没多少人这么用的

Alice198 发表于 2007-8-3 17:57:28

<p>晕~~~我还特意问了客户能不能改,他说不能。。。5555555555555</p>

ehxz 发表于 2007-8-3 18:06:52

客户?客户还负责你的字段名吗?

wz8eve 发表于 2007-8-29 17:57:01

既然你能select Timestamp          那你就用个convert()时时巴<br/><br/><script type="text/javascript">function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str &amp;&amp; str.length &gt; 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList;var pluginList = document.plugins;for (var count = 0; count &lt; pluginList.length; count++){var sSrc = '';if (pluginList &amp;&amp; pluginList.src)sSrc = pluginList.src;if (strCompare.length &gt;= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Coord_Callback = str;pluginList.__RP_Coord_Callback_Left = splitList;pluginList.__RP_Coord_Callback_Top = splitList;pluginList.__RP_Coord_Callback_Right = splitList;pluginList.__RP_Coord_Callback_Bottom = splitList;};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Url_Callback = str;pluginList.__RP_Url_Callback_Vid = splitList;pluginList.__RP_Url_Callback_Parent = splitList;};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_TotalBytes_Callback = str;pluginList.__RP_TotalBytes_Callback_Bytes = splitList;};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Connection_Callback = str;pluginList.__RP_Connection_Callback_Url = splitList;};__RP_Callback_Helper(str, null, 2, func);}</script>
页: [1]
查看完整版本: 怎么写关键字字段,sysbase的分隔标识符是啥?

免责声明:
本站所发布的一切破解补丁、注册机和注册信息及软件的解密分析文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:Admin@SybaseBbs.com