English 中文(简体)
如果在URL中没有吉大港山区,则相关的电离层出错
原标题:SQL related wonky error if there is no HTTP in the URL
select
wu.ACCOUNT_NUMBER as WS_ACCOUNT_NUMBER,
wu.LIFETIME_REVENUE as WS_LIFETIME_REVENUE,
wu.FIRST_NAME||   ||wu.LAST_NAME as WS_ACCOUNT_NAME,
wu.PRIMARY_EMAIL as WS_ACCOUNT_EMAIL,
wu.TIME_CREATED as WS_ACCOUNT_TIME_CREATED,
wuu.URL as BUSINESS_URL
from
WUSER wu
left outer join WUSER_URL wuu on wu.ACCOUNT_NUMBER = wuu.ACCOUNT_NUMBER

where
wu.ACCOUNT_NUMBER = 123456789;

屏幕上显示的URL是超链接,应当把我们带到网站点击。 问题在于,它只是在《Oracle db》中附有《吉大港山区议定书》的情况下才运作。

for example, it works when the url in db is http://www.google.com or http://google.com but it FAILS when the url is google.com or www.google.com

我们的客户非常具体地了解这一要求,希望能够在没有吉大港定居许可证的情况下绕过网站。

** 可能的解决办法是什么? Can 我写了一个有条件的字句,以记录,如果存在吉大港山区,如果没有,则将记录下来。

如果是,请告诉我,**

!

最佳回答

您是否能够核对数据,然后插入<代码>。 HTTP:

采用<代码>的有条件代码 在护堤前,......

CASE WHEN UPPER(wuu.URL) LIKE  HTTP://% 
THEN wuu.UR
ELSE  HTTP://  || wuu.URL
END

(It s only on several lines to make it easier to read.)

问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签