informix

How to enter new line using sql command INSERT

僤鯓⒐⒋嵵緔 提交于 2020-01-15 06:55:46
问题 Q: I wanna to know the syntax of SQL query of inserting new line in my table. I mean ,I wanna to enter the following in my table abc : aaaaaaaaaa bbbbbbbbbb cccccccccccc Maintaining the new line.through INSERT command . Thanks in advance 回答1: When I answered this question, you'd got it tagged with SQL Server 2008. You've since edited it to be about Informix. The following works for SQL Server 2008. INSERT INTO MyTable(MyField) VALUES('AAAAA' + CHAR(13) + CHAR(10) + 'BBBBB') Informix looks

Drop a foreign key constraint between columns of two tables without knowing the foreign key name in Informix?

我怕爱的太早我们不能终老 提交于 2020-01-15 03:58:23
问题 I'm using an Informix database. I have added some foreign keys to a table without giving them a name e.g. ALTER TABLE myreport ADD CONSTRAINT FOREIGN KEY (rid) REFERENCES report(id), ADD CONSTRAINT FOREIGN KEY (uid) REFERENCES user(id); Now I want to delete the foreign key between uid and id of user table. I can get the name of the constraints on the table using the following: SELECT constrname FROM sysconstraints WHERE tabid = (SELECT tabid FROM systables WHERE tabname = 'myreport'); which

testing inequality with columns that can be null

泄露秘密 提交于 2020-01-12 04:45:11
问题 So, I asked a question this morning, which I did not phrase correctly, so I got a lot of responses as to why NULL compared to anything will give NULL/FALSE. My actual question was, what is the time honored fashion in which db guys test inequalities for two columns that can both be NULL. My question is the exact opposite of this question. The requirements are as follows, A and B are two columns: a) if A and B are both NULL, they are equal, return FALSE b) if A and B are both not NULL, then

Error 360: Cannot modify table or view used in subquery

守給你的承諾、 提交于 2020-01-11 10:45:13
问题 INFORMIX-SE 7.32: I'm getting error 360 when I try to execute the following statement: update transaction set transaction.colx = (select tab1.cola from tab1) where transaction.num = (select max(transaction.num) from transaction) and transaction.colx IS NULL; Any ideas? 回答1: You're trying to UPDATE the table transaction and read from the same table using SELECT MAX with the same query. You cannot do that. Subquery restrictions In general, you cannot modify a table and select from the same

Java工作流引擎节点接收人设置20种规则讲解一

三世轮回 提交于 2020-01-08 16:56:04
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 关键字: 驰骋工作流程快速开发平台 工作流程管理系统 工作流引擎 asp.net工作流引擎 java工作流引擎. 开发者表单 拖拽式表单 工作流系统CCBPM节点访问规则接收人规则 适配数据库: oralce,mysql,sqlserver,Informix, PostgreSQL 达梦 接受人规则,就是为了解决下一步发送人的范围所制定的各种规则。审批、生产环境有很多的不确定性,更多的时候需要自动确定接受人的范围,为了适应不同场合下的需要我的制定了如下接收人规则。 概要说明 相关功能: 访问规则处理内容。 节点属性配置: 如下图: 功能入口 解释说明: 就是下一步工作人员的接受人范围处理规则。A运动到B,如何确定B的处理人范围。根据不同的业务场景,CCBPM提供了如下几种模式,您可以根据自动不同的业务背景设置自己的业务规则。 说明: 1, 下列设置类型,都设置当前节点作用于下一步节点。 2, 每一种类型,都有路径自动记忆功能,所说自动记忆功能是当节点第一次向下一个节点投递时,它把要投递的人记录下来。 如果您执行了分配系统就把分配的人员,做为接受人员计算. 可以设置的投递的类型: 为了更好的说明该规则,cc为我们提供了一个流程测试案例,如下图: 该案例详尽的设置了各个模式的方法,请打开相关的节点属性

Show a one to many relationship as 2 columns - 1 unique row (ID & comma separated list)

被刻印的时光 ゝ 提交于 2020-01-08 13:22:12
问题 I need something similar to these 2 SO questions, but using Informix SQL syntax. Concatenate several fields into one with SQL SQL Help: Select statement Concatenate a One to Many relationship My data coming in looks like this: id codes 63592 PELL 58640 SUBL 58640 USBL 73571 PELL 73571 USBL 73571 SUBL I want to see it come back like this: id codes 63592 PELL 58640 SUBL, USBL 73571 PELL, USBL, SUBL See also group_concat() in Informix. 回答1: I believe that the answer you need is a user-defined

Java工作流系统关于数据加密流程(MD5数据加密防篡改)

天大地大妈咪最大 提交于 2020-01-07 17:27:15
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 关键字: 驰骋工作流程快速开发平台 工作流程管理系统 工作流引擎 asp.net工作流引擎 java工作流引擎. 开发者表单 拖拽式表单 工作流系统 流程数据加密 md5 数据保密流程数据防篡改软加密 适配数据库: oralce,mysql,sqlserver,Informix, PostgreSQL 达梦 需求背景 对工作流引擎的数据加密研究, 流程数据的加密方案与实现过程. 1, 流程数据加密是为了防止流程数据被篡改的需要,从而造成对单位的不必要损失。 2, 流程数据篡改是具有管理员身份与非法入侵者,尤其是防范业务人员与具有系统管理员结合做坏事情。 比如: xxx公司在xx年曾经出现过这样的情况, 业务人员与管理员勾结,导致单位200万元损失,虽然最后查出来,罚款判刑,但是这是事后处理. 3, 并非所有的流程数据都需要加密, 比如请假流程就不需要,但是报销或者其它具有敏感数据的流程就需要了。 4, 被篡改后的数据需要警报,并写入log日志,还要不能被执行下去。 5, 要求每个节点的数据都要加密,整体流程数据也要加密。 处理方案: 1, 在流程中增加一个属性 IsMD5 是否要加密. 默认是否, 不加密. 2, 用户信息中包括一个盐值,用于后期的加密运算。 3, 凡是加密过的流程在每个节点表单上增加字段MD5

Informix one to many format issue

老子叫甜甜 提交于 2020-01-07 03:28:07
问题 Trying to fix my Informix query results format from a one to many relationship. My current query is using a JOIN but is creating a new line for every time there is a match to the JOIN ON condition. I should add the below is only an example, the real data is thousands of entries with about a 100 unique "category" entries so I cant hard code WHERE statements, it needs to read each entry and add if a match. I tried a GROUP_CONCAT however is just returned an error, guess its not a informix

Java工作流引擎-父子流程的配置讲解

给你一囗甜甜゛ 提交于 2020-01-07 00:35:33
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 父子流程 关键字: 驰骋工作流程快速开发平台 工作流程管理系统 工作流引擎 asp.net工作流引擎 java工作流引擎. 开发者表单 拖拽式表单 工作流系统 适配数据库 : oralce,mysql,sqlserver,Informix, PostgreSQL 达梦 应用背景 在各类工作流项目中,通常会遇到一个整体的流程模块(主/父流程),每个模块里都有多个子项目(子流程),项目的发起(流转)需要特殊条件来实现,可以通过配置父子流程来实现。 父子流程提供: 手动启动子流程, 自动触发子流程, 延续子流程, 三个功能模式来选择 一.启动父子流程 流程节点上右键选择节点属性,父子流程功能栏下可在手动启动子流程,自动触发子流程,· 二.编辑子流程(选择项目所需要的功能) 1.子流程模式( 下级子流程 / 同级子流程 ) 下级子流程类似于父子关系,在父流程节点上启动的子流程叫下级子流程 同级子流程类似于兄弟关系,在子流程节点上启动的子流程叫同级子流程 结束规则(此子流程结束后需要处理的) 子流程结束后可以选择父流程自动运行到下一个节点或者结束父流程的流转 3.针对子流程的三条限制规则: 1.仅能被调用1次(不能被重复调用) 此子流程只能被手动启动一次,(例如项目已经被启动一次,此项目不能被筹备实施两次

How to get number of working days in Informix between two dates

耗尽温柔 提交于 2020-01-06 19:05:13
问题 I need to create function in Informix that calculates number of working days in between two given dates. I have created table "prazkal" with holidays, and two Informix functions: create function is_holiday(d datetime year to day) returning boolean; define hcnt integer; if weekday(d) = 0 or weekday(d) = 6 then return 't'; end if; ---code that check if 'd' is marked as holiday in calendar select count(*) into hcnt from prazkal where datpra = d; if hcnt > 0 then return 't'; end if; return 'f';