473,539 Members | 10,182 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.
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...
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...
1
16,336
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...
4
16,314
thread by: surinder | last post Jul 24 '08 by: f1codz
Where is Foreign key in phpmyadmin
6
16,234
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...
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,157
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,...
3
16,105
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.
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 ?
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.
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 ?
2
15,830
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
1
15,823
pradeepjain
thread by: pradeepjain | last post Mar 27 '10 by: Atli
hi, I got this definitions from mysql official site now() - returns the current date and time. SYSDATE() returns the time at which it executes This differs from the behavior for NOW(), which returns a constant time that indicates the time at which the statement began to execute. (Within a stored function or trigger, NOW() returns...
4
15,802
thread by: Gary | last post Jul 23 '05 by: Gary
How do you get the current month - 1 month? (so not a particular day, but the whole month) Thanks, Gary
2
15,758
thread by: sunny076 | last post Aug 8 '05 by: Bill Karwin
Hi, I am confused with the syntax for NOT in MYSQL where clause and wonder if an expert in MYSQL can enlighten me. There are possibly two places NOT can go in: select * from employee_data where NOT employee_id LIKE 'A%' select * from employee_data where employee_id NOT LIKE 'A%'
3
15,734
thread by: xclones | last post May 6 '07 by: pbmods
Hello members, I need help on creating a database in mysql, I installed XAMPP server which installed php5, win mysql ver 1.4, Apeche server, phpAdmin on my windows XP with SP2 but i'm a newbie and. I don't even know what the phpAdmin is for. I want creat A web site that is database driven with php and mysql but I don't know where to start. Pls...
1
15,678
thread by: Brett Magill | last post Dec 15 '05 by: Bill Karwin
Hello all, Looking for some help here. BTW, to e-mail me directly, should you prefer, take the *nomail*. out the reply address. I uploaded data from another program ( GNU R-2.2.0 @ www.r-project.org ) into a MySQl (4.1.X ) database. R generated the tables for me, naming the columns, setting field types, and inserting the records. This...
1
15,626
thread by: peterloh | last post Sep 22 '06 by: Bill Karwin
In MSSQL you can create a table with a computed column, like this... CREATE FUNCTION CubicVolume -- Input dimensions in centimeters. (@CubeLength decimal(4,1), @CubeWidth decimal(4,1), @CubeHeight decimal(4,1) ) RETURNS decimal(12,3) -- Cubic Centimeters. AS BEGIN RETURN ( @CubeLength * @CubeWidth * @CubeHeight )
4
15,572
thread by: 21novembre | last post Jul 23 '05 by: 21novembre
Hi all, I got a quite strange problem when I tried to setup a database backup shell. I put it this way: "bin/mysqldump --opt --user=xxx --password=xxx DB > DB.bak" However, error 1045 came to me to say "Access denied for user 'xxx'@'localhost' (using password: YES) when trying to connect". None the less, I'm absolutely full of confidence...
5
15,525
thread by: steve | last post Jul 23 '05 by: Bill Karwin
Hi, Besides transaction capability, is there anything else about innodb tables that makes it superior to myISAM? I really don’t need transactions, but for example, I need superior reliability for index (too many index corruptions in the past). Is innodb better in that area, or any other areas? -- Posted using the...
4
15,514
thread by: Alan Searle | last post Jul 19 '05 by: Alan Searle
I have installed mysql (under SuSE 8.1) and everything seems to work fine when I am logged in as root. However, with my normal user profile I can get a mysql> prompt but have no permissions to carry out any database operations. I would really like to work with my normal profile and am hoping that it is merely a question of setting...
6
15,478
thread by: xpcer | last post Aug 6 '12 by: nikdeapen
my friend ever tell me that he have seen an update query without using SET , can anyone tell me how to use it in mysql thanks
6
15,459
thread by: Dimitri Tholen | last post Jul 19 '05 by: Nigel
Hi all, For a project I m working on I am looking for a database with all current car-makes & models from post-WII till now. With all the car websites around I am sure this information should be available somewhere so that I can import it into my MySQL database, but I simply can't find it. Does anybody know where I can get my hands on...
4
15,443
thread by: erehwon | last post Jul 19 '05 by: erehwon
when I create a table, I always make the first column my unique-id, and make this primary key auto-increment. Does this mean that the table will be indexed by mysql on this key - or do I need to explicitly do this too? e.g. create table note ( note_id INTEGER(9) AUTO_INCREMENT PRIMARY KEY,
4
15,408
thread by: zMisc | last post Jan 31 '06 by: Gordon Burditt
Is it possible to copy a table from one schema to another schema by just copying the frm file to the directory for the new schema? What is the best way to create a new database with all the tables in it automatically? I was hoping to have the tables (the frm files) included in a subdirectory and when required, just create a new schema...

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.