English 中文(简体)
我要硬码一个假列的值, 从我对一个神器 DB 所创造的视图中, 拼写到一个假列的值 。
原标题:I want to hardcode the value of a dummy column from my view created upon an oracle DB

I have a view which has one dummy column called action. I have a formula {@action}

如果 {abc_view.name} 以“abc” 开头,然后 {abc_view. action} = “ represents actions” = “else {abc_view. action} =“ ”

and when I am calling this formula from the record filter section, all I get is action under the dummy column action in crystal reports 2.0 for eclipse. How do I achieve my purpose. Please help me out.

问题回答

您可以在 Oracle 视图中创建 COL1 和 COL2 列具有如下等实际值的视图时, 硬码在 Oracle 视图中您可以创建此视图

CREATE OR REPLACE VIEW ABC_VIEW
AS 
SELECT 
CASE WHEN name like  ABC% 
THEN  Represents action  
ELSE
ACB.ACTION
END AS ACTION,COL1,COL2 FROM ABC;




相关问题
Oracle10g XE: Why PLS_INTEGER cannot be a column type

An invalid datatype is returned when I issue following command: CREATE TABLE msg_info ( msgcode PLS_INTEGER, msgtype VARCHAR2(30), msgtext VARCHAR2(2000), msgname VARCHAR2(30), ...

DMBS_SQL.to_refcursor equivalent in Oracle 10g

I have a coworker who came across DBMS_SQL.to_refcursor which would be a great solution for him to pass back the refcursor he needs, however we are running Oracle 10g and this feature is only ...

难以执行 REGEXP_SUBSTR

I m 查询Oracle 10g。 我有两张表格(样本数据见下文)。 i m 试图提取一些领域

Oracle: LONG RAW to?

I am writing a program in java where I need to create a copy of a table (without data). for that I am using the following query CREATE TABLE NEW_TABLE AS SELECT * FROM OLD_TABLE I have come across a ...

Oracle REPLACE function - unsure how to use for my scenario

I have a column called THE_VALUE in a table TABLE_A, that holds data similar to the following, i.e a few sample rows might be: tom:harry, sally, jeff state(vic,nsw), england, qwerty(aaa,bbb, cccc):...

热门标签