I am having some serious problems, however this seems to be a common thing. I have Snow Leopard 10.6.3 and here are my other version info:
MySQL
mysql Ver 14.14 Distrib 5.1.46, for apple-darwin10.2.0 (i386) using readline 5.1
gem 1.3.6
ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
My problem is that no...
In SQL, if we use Group By without Count(*) or Sum(), etc, then the result is as follows:
mysql> select * from sentGifts;
+--------+------------+--------+------+---------------------+--------+
| sentID | whenSent | fromID | toID | trytryWhen | giftID |
+--------+------------+--------+------+---------------------+--------+
| ...
In SQL, using the table:
mysql> select * from sentGifts;
+--------+------------+--------+------+---------------------+--------+
| sentID | whenSent | fromID | toID | trytryWhen | giftID |
+--------+------------+--------+------+---------------------+--------+
| 1 | 2010-04-24 | 123 | 456 | 2010-04-24 01:52:20 | 10...
i am interested in creating a rails app with a mysql database. i am new to rails and am just trying to start creating something simple:
rails -d mysql MyMoviesSQL
cd MyMoviesSQL
script/generate scaffold Movies title:string rating:integer
rake db:migrate
i am seeing the following error:
rake aborted!
NoMethodError: undefined method `o...
Environment
mysql-essential-5.1
mysql-workbench-oss-5.1.18a
windows vista
asmin account, UAC off
windows firewall exception-> add port-> mysql 3306 tcp is set
I unstalled mysql from installer remove option which delete all related folder
and reinstalled it
I need to connect mysql from nebeans 6.8
All good tutorials, blogs...
Hi, I'm making a simple cms system for a site I'm making for non-tech users to edit...
So far so good but when I try and run this code I keep getting: 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 ''pages' ORDER BY 'pages'.'pageOrder' ASC LIMIT 0 ,...
In a Django application, I'm trying to access an existing MySQL database created with Hibernate (a Java ORM). I reverse engineered the model using:
$ manage.py inspectdb > models.py
This created a nice models file from the Database and many things were quite fine. But I can't find how to properly access boolean fields, which were mapp...
I always thought of a Join in SQL as some kind of linkage between two tables.
For example,
select e.name, d.name from employees e, departments d
where employees.deptID = departments.deptID
In this case, it is linking two tables, to show each employee with a department name instead of a department ID. And kind of like a "linkage"...
In SQL, there is an operator to "Union" two tables. In an interview, I was told that, say one table has just 1 field with 1, 2, 7, 8 in it, and another table also has just 1 field with 2, and 7 in it, how do I get the intersection. I was stunned at first, because I never saw it that way.
Later on, I found that it is actually a "Join" ...
Query to Where X update Y and where A update B in a Mysql Table column.
How can I Do this in MYsql in one querry on the same column in a specific table.
I want to search and replace multiple values in a table column.
Conditons in table1 in column1
Where X update Y
and
Where a update b
and
Where 1 update 2
and
Where 3 update 4
and
Whe...
Hello,
In mysql utf8 coded turkish data i can't search "İ" and "ı". when i search its giving result contains "Y" or "y". Because in latin1 "İ" displaying as "Ý" and "ı" as "ý".
in latin1 data i was used latin1_general_ci for correct result. but there is not alternative collation for utf8. its already utf8_general_ci.
is there any othe...
I have a PHP server script that SELECTs some data from a MySQL database.
As soon as I have the result from mysql_query and mysql_fetch_assoc stored in my own local variables, I want to delete the row I just selected.
The problem with this approach is that it seems that PHP has done pass-by-reference to my local variables instead of pas...
Hi is there a free avaible translation backend with database avaible which can handle multiple users(no login needed), multiple languages (UTF-8) and provides automatic google translation?
I just need this tool to fill a database (preferable mysql) with simple tables like this:
language | label | text
english | _helloworld | Hello Wor...
I have two tables rooms and users. I want to get only rooms.room_id, users.user_name with user_id = 1. I can get the result of all users with following sql...
select rooms.room_id,
rooms.user_id,
users.user_name
from rooms
LEFT JOIN users ON rooms.user_id = users.user_id
When I do like this to filter the result with...
For SQL, when did it start to be desirable to always use the words "Inner Join" instead of implicitly joining by:
select * from t1, t2 where t1.ID = t2.ID;
? Is it just for style or to distinguish between outer join or are there other reasons for it?
...
Hi,
I keep getting this error:
MySQL said: #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 'INSERT INTO
books.book(isbn10,isbn13,title,edition,author_f_name,author_m_na'
at line 15
with this query:
USE books;
DROP TABLE IF E...
I am currently working with User objects -- each of which have many Goal objects. The Goal objects are not User specific, that is, Users can share the same Goal. I am attempting to fashion a way to calculate a "similarity percentage" between two Users... (i.e., taking into account how many Goals they share as well as how many Goals they ...
Hello,
The big problem : mysql does not stores the information i told him to via PHP
Example (this req is an echo just before the query) :
INSERT INTO serveur (GSP_nom , IPserv, port, tickrate, membre, nomPays, finContrat, type, jeux, slot, ipClient, email)
VALUES ( 'ckras', '88.191.88.57', '37060', '100' , '', 'Allemagne','20110519...
Hey all,
I am trying to Magento running on a share server, and am having difficulty.
When I look at the engines in PHPmyAdmin, I get InnoDB DISABLED. So I look in /etc/, and there is no my.cnf file.
There is a ftpquota and a .boxtrapper file, but nothing else.
I know I can probably create a new one, but this is a server that hosts ...
I seem to remember reading somewhere that there is a way to combine LEFT JOIN statements into a more simple query. I have the following query and was hoping someone could kindly take a look at it.
SET @userId = 8;
SELECT ug.user_id, COUNT(DISTINCT goal_id) as matches
FROM user_goal ug, user u, profile p
LEFT JOIN user_block ub ON @user...