16,020,701 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Visual Basic questions
View Javascript questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by KaRaMiLo (Top 19 by date)
KaRaMiLo
2-Aug-11 5:54am
View
hmm I already read all those topics and nothing useful if you have any experience please let me know
KaRaMiLo
2-Aug-11 4:06am
View
Do u know the difference between domain and sub-domain ?
Domain is your website and sub-domain is a section within your website .
All what I want to allow the user to search those (sub-domains) sections only for more accurate data using Google Custom Search Engine .
KaRaMiLo
1-Aug-11 14:27pm
View
hmm , I hope the following example can make it clear :
default domain : www.football.com
when a user want to search for a match to download then i want him to search only in the following : www.download.football.com
if he wants to watch a match online then he will search in here : www.watch.football.com
and so on for each feature in order to let the result be more accurate according to his needs
KaRaMiLo
1-Aug-11 10:59am
View
What I want to know , whether it is possible to change the domain to search in using JavaScript upon user entries as shown in the above example.
But I tried to find a way but I failed .
KaRaMiLo
1-Aug-11 7:21am
View
I really don't think that the programming language will differ as I want to do that using javascript !
KaRaMiLo
9-May-11 11:37am
View
still not working and when i compile it nothing is wrong but when i run it that message keep coming
KaRaMiLo
9-May-11 11:23am
View
i keep getting this error :
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
KaRaMiLo
9-May-11 11:16am
View
i can't apply it on update statements
KaRaMiLo
9-May-11 7:07am
View
the problem that i am trying to update not to select !
KaRaMiLo
5-Apr-11 8:22am
View
I got some problems :
In those examples there is different websties to search in but in my example it is only 1 website so when he ranks something he use a url pattern which is different because there is multiple website but in my case there is only 1 pattern so the results will remain the same !!
do you got me ?
KaRaMiLo
31-Mar-11 10:16am
View
i am stuck because oracle portal don't support multipart request ( file upload )
KaRaMiLo
31-Mar-11 5:23am
View
i don't want to do this i already added the site to search for , i want to rank the results
KaRaMiLo
31-Mar-11 5:22am
View
well i am using google search api with in my website and i want it to search my website only ( i've already done this ) but when the user use the example above i want the result to ranked.
KaRaMiLo
8-Dec-10 11:11am
View
i do know the user name and password but i don't know how to use them within java code !
KaRaMiLo
9-Jun-10 8:42am
View
here is what am doing , but i want to allow dynamic sql upon UPDATE ! :
DELIMITER //
CREATE TRIGGER update_prefix BEFORE UPDATE ON prefix_info FOR EACH ROW
BEGIN
SET @curr_number=0,@num_record=0,@temp=1,@cond=0;
SELECT count(subscriber_id)curr_numb INTO @num_records FROM account_info ;
while @temp <= @num_record do
if @temp <= 1 then
SELECT number INTO @curr_number FROM account_info WHERE NEW.prefix_id = account_info.sub_prefix_id limit 1;
UPDATE account_info SET account_info.subscriber_id = concat(NEW.prefix_value,@curr_number) WHERE NEW.prefix_id = account_info.sub_prefix_id ;
SET @temp=@temp+1;
end if;
if @temp > 1 then
SET @cond = @temp-1 ;
SET @cond = concat(@cond,",1");
SET @cond = concat("SELECT number INTO @curr_number FROM account_info WHERE NEW.prefix_id=account_info.sub_prefix_id limit ",@cond);
PREPARE stmt FROM @cond;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
UPDATE account_info SET account_info.subscriber_id = concat(NEW.prefix_value,@curr_number) WHERE NEW.prefix_id = account_info.sub_prefix_id ;
SET @temp=@temp+1;
end if;
end while;
END ;//
KaRaMiLo
9-Jun-10 8:33am
View
thnx for ur answer , i know all of that but i want to test this case exactly locally on my pc to do it , it is just an alternative to a solution i already got using stored procedures.
KaRaMiLo
7-Jun-10 7:14am
View
hmm , i know that but this link still don't illustrate Is it ok to use Dynamic SQL with TRIGGERS !!
KaRaMiLo
6-Jun-10 8:59am
View
I am sorry but i really guess that u miss the point .
abt ur reply i already know that but thnx anyway.
now here is the scenario :
i got 2 tables :
1- Account_info : with fields : (foreign Key {Prefix_id to prefix into table} , number , subscriber_number )
there is a trigger for this table in order to get the subscriber number using both prefix id and number as in example :
insert into account_info (prefix_id, number ) values (1,9090909) ; ( will automatically insert the subscriber_number with the value that ID 1 refers to and the rest of the number concat (Value(prefix_id(1),number)
2- Prefix_info : with fields: (primary key prefix_id , prefix_value) , this also got a trigger but this trigger works differently .
this trigger is fired when u try to update the prefix value so it looks for all values in account_info table which got the same prefix_id and it will update the subscriber number according to new values.
here is the second trigger code :
Trigger: before_update
Event: UPDATE
Table: prefix_info
Statement: BEGIN
SET @curr_number=0;
SELECT number INTO @curr_number FROM account_info WHERE NEW.prefix_id = account_info.sub_prefix_id;
UPDATE account_info SET account_info.subscriber_id = concat(NEW.prefix_value,@curr_number) WHERE NEW.prefix_id = account_info.sub_prefix_id ;
END
You will notice in this statement "SELECT number INTO @curr_number FROM account_info WHERE NEW.prefix_id = account_info.sub_prefix_id;" that i try to load the number into variable but the query returns more than a single number which cause this error "ERROR 1172 (42000): Result consisted of more than one row" , so i want to enhance that trigger behavior in order to let it update all records not a single one only.
i hope that i make it clear for u know.
and thnx for ur time
KaRaMiLo
17-May-10 8:14am
View
will i am not so good in mysql , so i really don't know if this going to make a problem or not . But the item in where clause is the same item which will be updated (is it going to to make a problem or not ?).
after adding index to that item inside where clause i will use the item or the index (i guess the item rite ?)
Show More