473,624 Members | 2,254 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.
1
2,090
thread by: BaseballGraphs | last post Sep 28 '10 by: Oralloy
Hello, I am trying to filter an array that I am pulling from a mySQL database using PHP. My question is if there is a way to LIMIT the number of rows that are pulled from the database with a mathematical operation in the SQL statement. I think it would something like: $sql = sprintf(SELECT * FROM data WHERE day = CURdate()-INTERVAL 1...
3
1,229
thread by: scottholloway | last post Sep 27 '10 by: scottholloway
Current Sybase SQL Query (Referance = http://manuals.sybase.com/onlinebooks/group-asarc/srg1100e/sqlref/) SELECT requisition.reqn requisition.pn requisition.ord_time status.status status.status_time requisition.del_time
3
1,357
thread by: dragon52 | last post Sep 27 '10 by: Daisy Duke
Hi, I installed "mysql-connector-net-5.2.3" and "mysql-gui-tools-5.0-r12-win32". The install seems ok. When I start the "Administrator" or "Query Browser", the login asks for connection/user/password values. I don't know what these should be because the installation procedure didn't ask me for an user/password to begin with. I have tried...
5
16,502
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...
3
4,644
thread by: gsreenathreddy | last post Sep 26 '10 by: jagdeep gupta
Hi! I would like to insert the date in specified format in DB, the date type is Date Type, I am using the following queries to insert the data 1) INSERT INTO EMP VALUES (1, 'red', 'CLERK', 2, date(date_format('17-DEC-1980', '%d-%b-%Y')), 800, NULL, 20) 2)INSERT INTO EMP VALUES (1, 'red', 'CLERK', 2,
4
2,778
thread by: Vivekneo | last post Sep 25 '10 by: Vivekneo
Hi this my second request at bytes, i am having a db with two tables, table1 - has the details of student, stud_id as primary key set to auto increment, stud_name and other details table2 - has the details of courses applied by each individual students, stud_id as foreign key and course_id as primary key any help, i will be very...
1
1,373
thread by: Oscar Lewis | last post Sep 24 '10 by: Oscar Lewis
This is an SQL algorithm developed by Joe Celko. Has anyone converted the following SQL to vba? ***************************************** To convert an adjacency list model into a nested set model, use a push down stack algorithm. Assume that we have these tables: -- Tree holds the adjacency model CREATE TABLE Tree
1
1,301
thread by: bansri | last post Sep 24 '10 by: Atli
is it possible to run xampp on windows 2007?actuly i hv created data base on xp but now i m using 2007 n itried .......its not working
1
1,940
thread by: Anitha Manickam | last post Sep 24 '10 by: Atli
can u help me to get below example table field status holds Integer, Status 0 1 I need to display in runtime like Status User
1
7,556
thread by: Amit Girish Deshpande | last post Sep 24 '10 by: Atli
Hi all, I have created a small Bank form GUI in gtk. I want to store the information in the database. Values(string) are present in variable say entry1. e.g. entry1="Amit" how can i insert string present in entry1 into table. I have tried different syntax's like
1
1,386
thread by: thelouvre | last post Sep 24 '10 by: Atli
I have two tables which have a field, let's call it FORM_TYPE, in which table 1's FORM_TYPE is LA-- and table 2's FORM_TYPE is LA---. Now I want to use a Where clause of Table1.FORM_TYPE = Table2.FROM_TYPE which always fails because of the extra -. I can't go change the database to make them the same. I was trying to use Where...
11
12,173
KeredDrahcir
thread by: KeredDrahcir | last post Sep 21 '10 by: code green
Have a table that needs to have results written to it, that will later be updated. To check if the table has been written to yet I'm using this code: $sql="SELECT DISTINCT field FROM table WHERE field=".$value; $new_result=mysql_query($sql,$db); if (!$new_result) { do xyz } When I do this it doesn't enter the...
2
1,978
thread by: vinayamujumdar | last post Sep 19 '10 by: Markus
Hi I have 1 textbox and 3 drop down menus. textbox is to pick a topic_head and the other dropdown lists are to select dept_name,category name and sub actegory name from different tables into single topics table. The user selects any of these fields then hits submit he should list all entries in the table. How would I formulate the...
0
916
thread by: Shaban Gwirb | last post Sep 16 '10 by: Shaban Gwirb
how can I convert from nafitha DBF to SQL
0
1,178
thread by: akshaycjoshi | last post Sep 15 '10 by: akshaycjoshi
Hi, I have a list of tables in a Netezza database and I want to get the name of primary key for each of the tables. Can anyone provide me the query.
1
2,115
thread by: miss D | last post Sep 15 '10 by: Stewart Ross
I have run 2 queries in Access which has the same field names, Qry1: Mgr ID Mgr Name Qry2: Mgr ID Mgr Name
0
885
vivekgs2007
thread by: vivekgs2007 | last post Sep 15 '10 by: vivekgs2007
Hi to all, I am doing a project in that the user log in and downloads the different files. every thing is working perfect but problem is...In admin area the all the details are storing in DB, I have kept separate table for that... where the columns are id-> primary key uid-> user id docid-> document id status-> how many times user...
0
1,647
thread by: tokcy | last post Sep 14 '10 by: tokcy
Hi all, After a long time i am back with a new problem. Right now I am having a problem with stored procedure. I am using stored procedure with PHP/MYSQL. And evry time I am changing the condition of query in stored procedure. when I am passing numeric value then its working fine but when I am passing varchar or text in parameter then it ia...
1
1,022
thread by: Rob P | last post Sep 14 '10 by: code green
table weather (date, temphi, templo). Looks like this: 2010-7-24, 83, 57 2010-7-25, 94, 60 2010-7-26, 98, 58 2010-7-27, 93, 61 2010-7-28, 87, 59 Statement is:
1
1,791
thread by: miss D | last post Sep 14 '10 by: code green
hi, i have posted this question here, regarding Access SQL i believe someone here is good in SQL. anyone can help me? http://bytes.com/topic/visual-basic/answers/894647-access-vba-how-create-crosstab-table-using-two-queries#post3602456 thanks in advance.
1
1,927
thread by: 3abdoelbub | last post Sep 8 '10 by: JKing
Hi, I'm using the following command to backup all databases creation only: mysqldump -u username --password=password --host=host --port=port --all-databases --no-data > D:\all_databases_creation.sql and I'd like to exclude specific database from those all databases. Is there any option like --ignore-table but to ignore database ? can I...
4
9,088
thread by: Peter910 | last post Sep 8 '10 by: wizardry
Brothers in the house. I plan developing an online database application with PHP and MYSQL. In my database design structure, I plan to have maximum of 50 columns and maximum of 20,000 rows in a certain table. But then I will to like have the experience of the members in the house. What exactly is the maximum number of rows and columns in a...
2
8,779
bagrigsb
thread by: bagrigsb | last post Sep 3 '10 by: kovik
Recently I downloaded the latest version of MySQL for 32-bit, installed it. No errors installing it. When I go to run it though, all it does is flash a DOS-like window for a fraction of a second and that's it. Okay, here is what I am doing and the operating system info... I am running XP Home Addition with SP3. In the windows explorer, i...
8
11,659
thread by: superaktieboy | last post Sep 3 '10 by: kovik
Hi i have the following SQL tables: prefix_bookings: +---------+------------+-----------------+-------------+---------------+ | book_id | book_place | book_customerid | book_adults | book_children | +---------+------------+-----------------+-------------+---------------+ | 3 | 1 | 1 | 2 | 2 ...
3
1,635
thread by: civettina | last post Sep 3 '10 by: JKing
Hi, I'm trying to send an email to' sample@sample.com' when a new row on my table contactform_con is inserted. Basically, when a person fills out the contact form (contactform_con) I want one email to go to one person to let them know. I've tried doing this using both navicat and PHPMyAdmin, but I've had no success. I've tried using...

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.