Search Results

Showing results 1 to 40 of 48
Search took 0.01 seconds.
Search: Posts Made By: veledrom ; Forum: MySQL and child forums
Forum: MySQL Jun 23rd, 2009
Replies: 6
Views: 593
Posted By veledrom
Related column is "invoiceid". Also, this is a PostgreSQL database. As i couldn't find place to post it, i have chosen this forum.


CREATE TABLE "public"."orders" (
"id" int4 DEFAULT...
Forum: MySQL Jun 22nd, 2009
Replies: 6
Views: 593
Posted By veledrom
Sorry. Yes i have.

Select * from table1 Where myid='PO-1-09/09';

Also, Like and IN don't work as well.
Forum: MySQL Jun 22nd, 2009
Replies: 6
Views: 593
Posted By veledrom
Hi,

PO-1-09/09 is a data stored in varchar column. When i do select * from table myid='PO-1-09/09', it doesn't return any value. If i change PO-1-09/09 to 5, and search for it, 5 returned related...
Forum: MySQL May 22nd, 2009
Replies: 0
Views: 376
Posted By veledrom
Hi,

This T-SQL works fine but i just want to make sure that it is also reliable. Do you think this is reliable?

Thanks


CREATE DEFINER=`root`@`localhost` PROCEDURE `addNewUser`(IN...
Forum: MySQL May 19th, 2009
Replies: 0
Views: 394
Posted By veledrom
Hi,

I am thinking to create an e-commerce web site. I just want to find out about the logic behid processing the order that have more than one order. How do we place an order? Stock check and...
Forum: MySQL Apr 8th, 2009
Replies: 2
Views: 1,484
Posted By veledrom
Yes you are right.
Forum: MySQL Mar 31st, 2009
Replies: 2
Views: 1,484
Posted By veledrom
Hi,

I have mysql database dump xxx.sql
How can i convert xxx.sql to xxx.csv?

Thanks
Forum: MySQL Mar 12th, 2009
Replies: 7
Views: 637
Posted By veledrom
Although, i have used naw33n's solution, manojjena1982's solution seems usefull to. mwasif's solution needs some time to be absorbed.

Thanks
Forum: MySQL Mar 5th, 2009
Replies: 3
Solved: Decimal problem
Views: 805
Posted By veledrom
Understood. Thanks. It works now.
Forum: MySQL Mar 5th, 2009
Replies: 7
Views: 637
Posted By veledrom
Let's say a texbox has "PHP, ASP, developer, programmer, web developer, Java"

What SQL statement could be be for me to use to return results?

Thanks
Forum: MySQL Mar 5th, 2009
Replies: 3
Solved: Decimal problem
Views: 805
Posted By veledrom
Hi,
INSERT INTO money (salary) VALUES ('100,000,000.00')

100,000,000.00 is stored as 100.00 in decimal (14,2).
I don't know what is wrong?

Thanks
Forum: MySQL Mar 5th, 2009
Replies: 7
Views: 637
Posted By veledrom
Hi,

How do i order results for most relevant one?

Select id, title from data where (titleLIKE '%PHP developer%')

id title
---- -------------------------------
1 ASP...
Forum: MySQL Mar 3rd, 2009
Replies: 1
Views: 451
Posted By veledrom
Hi,

In what sql cases we should lock particular rows? Is it UPDATE and DELETE only.

Thanks
Forum: MySQL Feb 17th, 2009
Replies: 4
Views: 2,896
Posted By veledrom
How do i solve it verruckt24 ? I can connect to the database but i cant use phpMyAdmin GUI page.
Forum: MySQL Feb 16th, 2009
Replies: 4
Views: 2,896
Posted By veledrom
Hi,

I get this error in my myPhpAdmin in WAMPserver 2f.
#1045 - Access denied for user 'root'@'localhost' (using password: NO)

How can i solve it?
Forum: MySQL Nov 1st, 2008
Replies: 1
Views: 576
Posted By veledrom
Hi,

I need to find out the term for two different query types.

I know that we name queries as PL/SQL stored in the database and called in web pages like view, str.proc.
What do we call queries...
Forum: MySQL Oct 22nd, 2008
Replies: 2
Views: 746
Posted By veledrom
Thanks for the link, very helpful.
Forum: MySQL Oct 19th, 2008
Replies: 2
Views: 746
Posted By veledrom
Hi,

Is a stored procedure faster or a normal inline query in a web application? I use mysql but i guess answer must be same for all databases. Maybe not!

Also, how do i test speed of the query...
Forum: MySQL Sep 29th, 2008
Replies: 0
Views: 1,214
Posted By veledrom
Hi,
I deliberately do mistake on line INSERT INTO table2....... but, it still commits despite variable of rowcount is set to 0. How can solve it?

Thanks


BEGIN
DECLARE rowcount INT; ...
Forum: MySQL Sep 18th, 2008
Replies: 6
Views: 1,286
Posted By veledrom
Thanks for information
Forum: MySQL Sep 18th, 2008
Replies: 6
Views: 1,286
Posted By veledrom
For example,
First INSERT and SELECT run successfuly.
Second INSERT doesn't run.
In this case first INSERT must be canceled too. This is in a stored procedure.
Thanks

I am just trying to...
Forum: MySQL Sep 17th, 2008
Replies: 6
Views: 1,286
Posted By veledrom
Hi dickersonka,

How would you apply your solution to code below? I couldn't do it.

Thanks again


BEGIN
DECLARE add INT;
INSERT INTO Table1 (col1, col2) VALUES (1,2);
Forum: MySQL Sep 17th, 2008
Replies: 6
Views: 1,286
Posted By veledrom
Hi,

I have a cookie with 5 products. There will be a loop to read one by one and reduce from stock in database for each product. Now, If something goes wrong half way through i want to cancel...
Forum: MySQL Sep 16th, 2008
Replies: 4
Views: 772
Posted By veledrom
I will try it again and let you know what exactly error was.
Thanks
Forum: MySQL Sep 16th, 2008
Replies: 4
Views: 772
Posted By veledrom
Yes you are right. It must be CREATE FUNCTION testVAT(myMoney DECIMAL(4,2)). But, still doesn't work.
Forum: MySQL Sep 15th, 2008
Replies: 4
Views: 772
Posted By veledrom
Hi,

MySQL function below is not working. I cant find the mistake. Can you help me?

Thanks


CREATE FUNCTION testVAT(DECIMAL(4,2))
RETURNS DECIMAL(4,2)
DETERMINISTIC
Forum: MySQL Sep 4th, 2008
Replies: 3
Views: 1,323
Posted By veledrom
Because, i want to learn how to read OUT parameter.
Forum: MySQL Aug 29th, 2008
Replies: 3
Views: 1,323
Posted By veledrom
Hi,

Stored proc code below works fine in MySQL command prompt. It returns John because it is in table. However, i can't return or read the Out parametter in PHP. I mean i cant retrieve John. I did...
Forum: MySQL Aug 20th, 2008
Replies: 2
Views: 629
Posted By veledrom
Sorted. i have created everyting again.
Forum: MySQL Aug 19th, 2008
Replies: 1
Views: 1,184
Posted By veledrom
Hi,

How do we save person's pictures in database?Do we just create column "pictutePath" and enter this value "../pictures/user1.jpg" for each person or is there any other way?

Thanks
Forum: MySQL Aug 11th, 2008
Replies: 2
Views: 629
Posted By veledrom
Hi

Code below generates this error "Table 'sis_audit.pay' doesn't exist".

UPDATE pay SET Ref='111', date='2008-11-11' WHERE id=29

When i create same table in different database, no error at...
Forum: MySQL Jul 27th, 2008
Replies: 5
Views: 1,273
Posted By veledrom
Thank you guys. It works now. Tejusi, your solution is in use.
Forum: MySQL Jul 26th, 2008
Replies: 2
Views: 1,142
Posted By veledrom
I tried but didn't work. I dont use this logic. Therefore, ignore this post.
Thanks for your reply tejusi/
Forum: MySQL Jul 26th, 2008
Replies: 5
Views: 1,273
Posted By veledrom
I'll try and let you know.
Thanks guys
Forum: MySQL Jul 25th, 2008
Replies: 5
Views: 1,273
Posted By veledrom
Hi,
How can i pick next or prevoius day in mysql? Any function like curdate() ?
Thanks
Forum: MySQL Jul 25th, 2008
Replies: 1
Views: 3,955
Posted By veledrom
Sorry i have forgotten to put "then".
Forum: MySQL Jul 25th, 2008
Replies: 1
Views: 3,955
Posted By veledrom
Hi,

Code below is wrong but i can't find the mistake.


Set @RecAdj:=(SELECT SUM(Paid) AS Total FROM payment WHERE PayDate = CURDATE());

if ISNULL(@RecAdj)
set @RecAdj:= 0;
end if;
Forum: MySQL Jul 25th, 2008
Replies: 2
Views: 1,142
Posted By veledrom
Hi,

Select closing From balance Where account_no = 12 Limit 1 returns an error "You can't specify target table 'balance' for update in FROM clause"
Where is mistake?
Thanks


AFTER INSERT ON...
Forum: MySQL Jul 24th, 2008
Replies: 2
Views: 1,011
Posted By veledrom
Hi,

I have "Balance" table that is shown below.

Table :Balance
todaysDate/openBalance/closeBalance
------------ --------------- --------------
2008-07-24 250000 100000
...
Forum: MySQL Jul 14th, 2008
Replies: 1
Views: 1,306
Posted By veledrom
Hi,

I encrypte my data when i insert into database.
insert into person (name, psw) values ('john',SHA1('111'));

What about when it comes to checking that particular encripted values? Is there...
Showing results 1 to 40 of 48

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC