473,543 Members | 1,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQL Database Forum

MySQL database (open source) - Ask questions about mysql server, setup, queries, optimization, errors, tables, syntax, functions, SQL, storage engines, MySQL cluster, replication, scalability, availability, stored procedures, views and more.
2
15,832
thread by: STEPHENSS | last post Oct 16 '07 by: pbmods
Hi, New to SQL. I need to reverse the signs, for example I have an amount of -1,500.00 and I need to change the the Amount to 1,500.00 and all positives amount to a negative amount also. Thank you Stephen
4
15,928
thread by: pankajit09 | last post Apr 12 '07 by: kjbetz
Hello I want to know about mysqlcump and mysqlhotcopy . Which is better and why ? If mysqldump is there then why mysqlhotcopy is developed ?
6
15,998
thread by: David Brown | last post Jul 19 '05 by: Ed Seedhouse
With MySQL is it possible to have indexes or tables held in RAM? If so how do I ensure that updates are copied to disk? Regards, Dave.
1
16,052
thread by: Ray in HK | last post Jul 23 '05 by: Ray in HK
What are the differences between LOAD DATA INFILE and LOAD DATA LOCAL INFILE ? I found some web hosting company do not allow using LOAD DATA INFILE but allow LOAD DATA LOCAL INFILE. The reason is for the sake of security. What does that mean ?
3
16,106
thread by: fariba123 | last post Dec 2 '06 by: ronverdonk
requirement 1 -------------------- present data:12000.00(in database) required data:12,000.00(display format) requirement 2 -------------------- there are some decimal data in database. i have to print the total value in the same format (i.e. 12.00). but i am getting the value as 12.
14
16,159
thread by: Phil Powell | last post Jul 19 '05 by: Phil Powell
I have a client database in my db dev server environment I need to create, but the client name contains a dash "-". This blows up upon attempting to do create database my-site; How then do I create this database, simple as that? Thanx Phil
3
16,159
thread by: konsu | last post Jul 19 '05 by: Mr. Clean
hello, i would like to write a batch file with all sql commands necessary to create a database, its tables, and populate them with initial data. would the experts please help me with these problems: 1. how to programmatically, in sql script, check if a known database already exists on the server, and drop it if it does? 2. similarly,...
6
16,235
snowfall
thread by: snowfall | last post Jan 16 '08 by: debasisdas
I am getting the following error on inserting into my MySQL DBase. My child table has a foreign key of the parent table. But while creating the table, i have used 'on delete cascade'. I dnt know what the problem is. Pls help com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign...
4
16,314
thread by: surinder | last post Jul 24 '08 by: f1codz
Where is Foreign key in phpmyadmin
1
16,337
thread by: capilano | last post Feb 28 '07 by: ronverdonk
I used SQL Studio to build 2 queries: 1. in SQL, it's working fine: SELECT * FROM my_tab WHERE my_tab.START_DATE between '2006-01-01' and '2006-12-31' 2. but if I build the same thing in visual query, it complains there's an error and highlight "d '2006-12-31'" Appreciate anyone could comment on MySQL's complaints. So far, MySQL is quite...
5
16,493
omerbutt
thread by: omerbutt | last post Sep 27 '10 by: omerbutt
Hi my question is that what is the difference between mysql and mysql enterprise edition our client has demanded the if we will use mysql enterprise edition because in future he wanted to shift the db to oracle and the stored procedures in the mysql enterprise would be working as is for oracle too now what should i recommend to them , does...
6
16,502
thread by: Lofty | last post Jul 19 '05 by: Lofty
Hi all. I have to write an app that interacts with mySQL (I really must have done some evil, evil stuff in a previous life to be landed with this!) I need to work out the difference in days between values in the database and the current date. "No problem," thought I , "I'll just use the SQL DATEDIFF command." Heh! Well, the user...
26
16,577
thread by: nicoletsii | last post Dec 5 '09 by: bwtharp
I have been tring to connect to my database using godaddy i keep getting an error#1064 you have an error in your SQL syntax check the manual that corresponds to your MYSQL server version for the right syntax to use near <?php // connect to database $hostname = 'h41mysql47'.secure.net'; How can I fix this?
6
16,628
thread by: J James | last post Jul 19 '05 by: SR
I hired someone to develop a web application for classified Ads using MYSQL as the database. When I requested them to implement a way so that the webmaster can compact the database, their reply was that, there was no need to compact the database. I strongly think that the database should be compacted once in a while since there are lots of...
7
16,691
thread by: asenthil | last post Dec 22 '06 by: ronverdonk
Hai to all, this is senthil... i'm now working in the field of VC++... i want to connect a mysql database... just now tried to retrieve rows from a simple mysql database by using VC++ My database is like this...
3
16,702
thread by: crs27 | last post Feb 3 '09 by: r035198x
Hai, I have a simple query fired on click of a button. i.e., update table_name set column1='20' , column2='15' where id='1'; Even through the query browser it is giving Lock wait timeout exceeded; try restarting transaction ,this exception. The same was working a couple of days before. what might be the reason for this exception.
6
16,719
thread by: Gabriel Harrison | last post Jul 19 '05 by: Ray
Hi, I have a mysql db with with autoincrementing primary keys in each table. I want to allow a user to add a record using a php webpage. Once the page is added how can I re SELECT that record (for the user to verify) if I don't know what the primary key was when it was inserted? Is the only way to not use autoincrement and choose the...
2
16,734
thread by: michael | last post Jul 19 '05 by: BDR
Gotta post because this is driving me nuts. Trying to DELETE orphans. I can successfully: SELECT GroupID FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE UsersID IS NULL; but when I try: DELETE FROM Groups LEFT JOIN Users ON UsersID = UserID WHERE UsersID
4
16,740
thread by: DG | last post Oct 18 '05 by: Thomas Bartkus
Hi, Can anyone advise how to execute multiple statements in a single query batch. For example- update customers set customer_name = 'Smith' where customer_name = 'Smyth'; select * from customers; I can execute each statement individually but get the 'you have an error in
1
16,752
thread by: aPRSComp | last post Nov 28 '05 by: Bill Karwin
CREATE TABLE `test`.`buildings` ( `building` VARCHAR NOT NULL DEFAULT '', `location` VARCHAR(45) NOT NULL DEFAULT '', PRIMARY KEY(`building`) ) ENGINE = InnoDB; MySQL Error Number 1064
4
16,789
thread by: Bob Sanderson | last post Feb 7 '06 by: Bob Sanderson
I am trying to set up an ODBC DSN to our company MySQL database so that I can use a MS Access front end. I am using the MySQL ODBC 3.51 driver. The database is running off of Apache on our Windows 2000 server (call it 'foobar'). The host is 'localhost', the user is 'root'. To access the database via a web browser on a PC on our network, I use...
7
16,789
thread by: ted clarke | last post Nov 25 '10 by: Judd Watts
hello. i am running mysql5 on mac osx 10.5. i am new to both of these. i have created a sql script file and i am trying to use it with the sql SOURCE command. when i execute the command: SOURCE mySqlScript.txt; i get the error: Failed to open file 'mySqlScript.txt', error: 2. i have placed this file in the /usr/local/mysql/bin directory. i...
1
16,793
thread by: Jeremy Kohansimeh | last post Jul 20 '05 by: Bill Karwin
Hello, I just installed version 4.0.21 on a Mandrake 8.2 system. I cannot get the MySql daemon to run. I am using the following commands, and receiving these errors: $mysqld_safe --user=mysql Starting mysqld daemon with databases from /var/lib/mysql STOPPING server from pid file /var/lib/mysql/JBrain.pid 040921 09:01:55 mysqld ended
2
16,965
thread by: poreko | last post Jan 8 '09 by: poreko
I am connecting to my database using Object oriented PHP. My query is returning results but at the end of my table,at the bottom of the page I keep having this error when I run my program: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\mysql_class_2.php on line 45. Can anyone help me? ...
8
17,034
thread by: Adam Nemitoff | last post Jul 19 '05 by: Chuck Gadd
Is is possible to construct a SELECT statement that contains a WHERE clause that uses the value from a column in the "next" row? ie. given a table with a single field named "myField" with the following values I want a SELECT statement that selects the rows "WHERE myField='1' and myField = '2' ": 5 6 1

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.