Viewing 14 posts - 1 through 14 (of 14 total)
ok. Why you still using sybase 10 ? Why can't ask your manager to upgrade it to 15.2(latest version) or atleast 12.5.3 ( which is having lot of features...
August 19, 2008 at 3:37 am
Did you try the function I gave you?
Hi, thanks for your help
However, I could not run your codes in my system. There's always error message shown "Incorrect syntax near the...
August 19, 2008 at 12:05 am
karthikeyan (8/18/2008)
exec Email_ID_display 'HK08012698'Result:
HK08012698 edxxxxx@gmail.com/kimxxxx@gmail.com/yunxxxx@hotmail.com
It's strange that I could only get "/yunxxxx@hotmail.com" with exactly the same code as you...
Well, I'm using Sybase 10 and Embarcadero DBArtisan 8.1.2, maybe Sybase...
August 18, 2008 at 11:49 pm
Hi, I just use your codes, you can try on your system
create table Email_ID
(
CustomerID varchar(30),
Address varchar(50)
)
insert into Email_ID
SELECT 'HK08012698','edxxxxx@gmail.com' UNION ALL
SELECT 'HK08012698','kimxxxx@gmail.com' UNION ALL
SELECT 'HK08012698','yunxxxx@hotmail.com' UNION ALL
SELECT 'HK08012699','sallyxx@gmail.com' UNION ALL
SELECT...
August 18, 2008 at 7:45 am
I tried and got the result "/ed9xxxx@gmail.com", it seems the @add could only store the last record.
August 18, 2008 at 7:25 am
Hi, karthikeyan, thanks
However, I could only get the " ed9xxxx@gmail.com" with your codes...
August 18, 2008 at 6:50 am
Thanks for your suggestion!
I'm new to SQL and SP, will read the article to see whether I could apply it in my case...
August 14, 2008 at 1:49 am
I want to get the following result sets:
In table address, there are several rows to store different E-Mail addresses, for example:
customer_id ...
August 13, 2008 at 4:43 am
Hi, for table #tmp_410a, I retrieve some information from several tables and store the data into this temprary table:
select
ad.address_id,
ca.customer_account_id,
ca.customer_account_title,
......
convert(varchar(100), '') email,
......
into #tmp_410a
from ...
August 13, 2008 at 4:04 am
Thanks, Ken
Someone else suggests a much simpler way:
change
case when charindex('(', asset.asset_name) > 0 then
left(asset.asset_name, charindex('(', asset.asset_name) - 1)
else
...
August 11, 2008 at 1:35 am
Just now, I tried to use another SP to do the "update" command, and call it in the original SP, however, still no use...
I was confused and lost~~~
July 23, 2008 at 2:15 am
How many records are you working with? You might try experimenting with building a clustered index on customer_account_id in each of the tables first.
I'm working with 9453...
July 22, 2008 at 8:27 pm
Sergiy (7/22/2008)
First, there is "error" message with
update t1
as "t1" could not be found
Can you post the error message?
Here is the error message:
Number (208) Severity (16) State (1)...
July 22, 2008 at 8:22 pm
Hi, Sergiy, thanks for your kind help!
Well, I did not understand your meaning of "cross join"...
And, it still did not work...
First, there is "error" message with update t1
as "t1"...
July 22, 2008 at 7:31 pm
Viewing 14 posts - 1 through 14 (of 14 total)