问题标签 [sap-iq]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
datetime - Sybase iq 无法加载带有日期时间列的表
我正在尝试将表从文本文件加载到sybase iq数据库中,并且在加载日期时间字段时遇到问题...总是出错data type conversion is not possible
。我尝试了很多方法来解决它...
- 创建 varchar 字段并将其转换为数据
- 使用 dateformat、cast、convert 创建临时表并将值从临时表插入到我的表中,
- 从 ... 加载表 table_name(datetime_column datetime('dd-mm-yyyy hh-mm-ss'))
没有什么帮助。有什么帮助吗?谢谢。
character-encoding - SAP IQ 16.0 加载表编码/字符集
我尝试使用LOAD TABLE
语句将表从 txt 文件加载到 Sybase IQ Server。而且我在插入这样的 ћРР РђРЎРўРќРћ记录时遇到了编码问题。我解决了我的问题
set temporary option DEFAULT_ISQL_ENCODING = 'UTF8';
但是现在我们有了新的服务器,这不再解决我的问题了。无论我做什么,我都会遇到编码问题。
SELECT PROPERTY ('charset')
两台服务器上的输出'utf8'
。
SELECT @@version
输出:
Sybase IQ/15.4.0.3027/130221/P/ESD 3/RS6000MP/AIX 6.1.0/64bit/2013-02-21 11:27:49 老服务器
SAP IQ/16.0.0.808/141110/P/sp08.20/Enterprise Linux64 - x86_64 - 2.6.18-194.el5/64bit/2014-11-10 12:47:58 新服务器
sql - SQL从长字符串中提取整数值
我有一个包含varchar(300)
(它包含一些 URL)列的表,我需要将此列的一些值提取到一个新integer
列中。
来源栏:
我需要找到字符串searching_field=int_value
并插入int_value
到表中。
升级版。我找到了一个很好的工具REGEXP_SUBSTRING
,我正在尝试使用如下:
sql - SQL Anywhere 错误 -728:尝试对不可更新的远程查询执行更新操作
我正在尝试做的事情:
但我越来越
我能以某种方式解决它吗?我不使用本地/远程表。我用一张桌子。
tsql - Why do i get an error: cant convert '' to a timestamp?
Can't convert '' to a timestamp.
I have a "date_column" (date type) from witch I want to select the top 1 row. I have a procedure that goes trough 10 tables, each table has the column "date_column" and I want to get the top 1 date from each column and create a view based on that date. I tried with a convert statement, and get: cant convert '' to a timestamp error. If i make @top_date
(date type) i get an cant convert to numeric in the view creation step, so it has to be varchar I think.
case-insensitive - 如何使 SybaseIQ 不区分大小写?
我使用 Case IGNORE 功能创建了我的 DB(SYbaseIQ 16.X),但由于区分大小写,所有选择都失败了。我试过 ALTER DATABASE 命令,但它没有任何这样的选项。
如何将我的数据库恢复为大小写 IGNORE 设置,并检查我的数据库的配置是什么?
sql - 最小化相同 ID 的间隔数 (Sybase IQ)
我一直在为以下问题而烦恼。我有一个带有标识符、特征以及开始和结束日期的表。通常,在间隔结束时,特性应该改变。但是,由于系统中的故障,会创建具有相同特征的连续间隔。例子 :
我想查看每组 id&characteristics 的最大(结束日期)。但是该组应该只在连续的时间范围内保持一个组。就像是:
我一直在搞乱FIRST_VALUE
,LEAD
但LAG
我似乎无法弄清楚。
date - 在 Sybase IQ 中查找两个日期之间的差异时出错
我想找出日期(在表中的 nvarchar 列中)和当前日期之间的差异。
我尝试使用 datediff,但是我不断收到“类型转换失败”的消息。
仅供参考,日期 1 的格式是 mm/dd/yyyy 日期 2(getdate()) 的格式是 yyyy-mm-dd
你能告诉我一个 datediff 语法来计算两个日期之间的月差吗
干杯
sql - SQL - count without group by? I need to use two ids for a join
I thought I could count a column and add it as a column as I can with a sum but I get an error about having to group by / having. An example of what I want...
Initial table...
I then want to add a column that counts the number of Manager in each group / local pairing...
I tried just joining the two tables on the global / local ID and then adding a column for count of the Role. The problem is that I get an error about grouping / having by but I don't want to group anything. I just want to add the column and still have the same number of rows. Any way around this?
FYI - for the last two rows, the last column has 2 because John and Mike are on the same group / local ID
sql - 查询两个表的求和积
我有 2 个表,其中包含名称和余额 ex
表 A
表 B
所以我需要把这两个表加起来,每个名字都有一个正面和一个负面,我不知道表 A 和表 B 是否会有相同数量的唯一名称,所以它可能是或。当我运行查询
此查询分别适用于表 A 或表 B,但是当我尝试运行这样的查询时,我得到了一个离谱的数字
有没有办法在一个查询中做到这一点?