Forum: MySQL 10 Days Ago |
| Replies: 1 Views: 272 `college_id` int(100) NOT NULL
The second value row in your insert tries to add all blank values, which is not allowed. You should remove it, so the insert looks like this:
INSERT INTO... |
Forum: MySQL 12 Days Ago |
| Replies: 2 Views: 312 Perhaps Navicat (navicat.com). Been using it several years. Data migration is one of it's features. |
Forum: MySQL 28 Days Ago |
| Replies: 1 Views: 509 The .sql file is just a dump of the database. If you make changes to this file, it won't affect the database itself. You either need to use e.g. phpMyAdmin, a database tool or import the sql file... |
Forum: MySQL 29 Days Ago |
| Replies: 1 Views: 466 Table 'craftyartsalesmailcatcher.swd_account' doesn't exist
You're missing a table. Make sure your database is correct. |
Forum: MySQL Nov 12th, 2009 |
| Replies: 3 Views: 551 SELECT
elec.sum(votes) as votes,
stat.sum(rating) as rating,
votes/rating as percentage
FROM elec, stat
WHERE YEAR=2009
Only thing I'm not sure about is the YEAR = 2009 in the... |
Forum: MySQL Nov 10th, 2009 |
| Replies: 1 Views: 375 SELECT dname, cno, sectno, avg(grade) as avg_grade
FROM enroll
GROUP BY dname, sectno, cno
ORDER BY avg_grade DESC LIMIT 1 |
Forum: MySQL Nov 9th, 2009 |
| Replies: 4 Views: 464 No, use phpMyAdmin to export your database to an .sql file. It is a text file containing all queries to recreate your database. |
Forum: MySQL Nov 5th, 2009 |
| Replies: 2 Views: 422 Something like this:
select * from product where id not in (select product_id from discount) |
Forum: MySQL Oct 30th, 2009 |
| Replies: 1 Views: 442 $strSQL = "SELECT DISTINCT area FROM hospital where area like '%$strSearchVal' "; |
Forum: MySQL Oct 29th, 2009 |
| Replies: 2 Views: 535 You can insert a datefield as '1971-10-28'. The data you are trying to insert does not fit in the date column. |
Forum: MySQL Oct 28th, 2009 |
| Replies: 3 Views: 466 You can create a password in phpmyadmin, in the priviliges section. There are some settings that you can change in the config file of phpmyadmin, whether or not it should ask for your password, or... |
Forum: MySQL Oct 28th, 2009 |
| Replies: 3 Views: 466 IIRC the older versions of wamp had a default root user (named: root) without a password.
Any specific reason you've installed 1.7, and not 2.0 ? |
Forum: MySQL Oct 26th, 2009 |
| Replies: 1 Views: 392 Check out this first: http://dev.mysql.com/doc/refman/5.1/en/
It contains everything you need to know to get started. |
Forum: MySQL Oct 15th, 2009 |
| Replies: 7 Views: 467 Can you post what you did ? |
Forum: MySQL Oct 15th, 2009 |
| Replies: 7 Views: 467 You can use mysqldump. You can find examples in this site. |
Forum: MySQL Oct 13th, 2009 |
| Replies: 2 Views: 420 This will help:
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html |
Forum: MySQL Oct 9th, 2009 |
| Replies: 5 Views: 467 Did you check the links, and tried it ? |
Forum: MySQL Oct 9th, 2009 |
| Replies: 5 Views: 467 His question was to add dates to columns automatically. Ergo, the use of triggers. Please clarify how php would solve this. |
Forum: MySQL Oct 8th, 2009 |
| Replies: 9 Views: 474 That is not a valid query, but I am unsure of what you want to achieve. |
Forum: MySQL Oct 8th, 2009 |
| Replies: 9 Views: 474 |
Forum: MySQL Oct 8th, 2009 |
| Replies: 9 Views: 474 $sql="SELECT * FROM $tbl1_name WHERE sex='$show_all' AND age BETWEEN '$from' AND '$to'"; |
Forum: MySQL Oct 5th, 2009 |
| Replies: 9 Views: 641 Try:
(($cat_parent_id == 0) ? "sub_cat_name = '$name'," : "cat_name = '$name',")
If it still doesn't work, echo the query after you built it, so maybe you can determine where it goes wrong. |
Forum: MySQL Sep 30th, 2009 |
| Replies: 5 Views: 467 Calculate the difference:
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff
Create a trigger to do it automatically:... |
Forum: MySQL Sep 23rd, 2009 |
| Replies: 6 Views: 487 1. He could poll the database to see if there have been any changes.
2. He could write a specific page which you can trigger. |
Forum: MySQL Sep 17th, 2009 |
| Replies: 5 Views: 464 insert into table (mycolumn) values (encode('myvalue', 'mykey'))
select decode(mycolumn, 'mykey') from table |
Forum: MySQL Sep 16th, 2009 |
| Replies: 5 Views: 464 http://dev.mysql.com/doc/refman/5.1/en/encryption-functions.html |
Forum: MySQL Sep 7th, 2009 |
| Replies: 2 Views: 446 If you are using a different user for the dump, than you could disallow priviliges to the general user, while dumping/truncating, and reset priviliges afterwards.
"FLUSH TABLES WITH READ LOCK" may... |
Forum: MySQL Aug 31st, 2009 |
| Replies: 3 Views: 589 Not sure about security, but mySQL will eventually be dropped in favour of mySQLi. That should be reason enough to decide... |
Forum: MySQL Aug 27th, 2009 |
| Replies: 8 Views: 588 Hmm. The error points to typo's or too long identifiers.
http://www.dba-oracle.com/t_ora_00904_string_invalid_identifier.htm |
Forum: MySQL Aug 27th, 2009 |
| Replies: 8 Views: 588 EUIPMENT_FEATURES_MVIEW
shouldnt that be
EQUIPMENT_FEATURES_MVIEW |
Forum: MySQL Aug 27th, 2009 |
| Replies: 8 Views: 588 I think your group by and where are in the wrong order. |
Forum: MySQL Aug 26th, 2009 |
| Replies: 2 Views: 449 http://dev.mysql.com/doc/refman/5.1/en/server-logs.html |
Forum: MySQL Aug 26th, 2009 |
| Replies: 2 Views: 567 You get a hyperlink in Excel because Excel recognizes the email format. Navicat just treats it as text. |
Forum: MySQL Aug 26th, 2009 |
| Replies: 8 Views: 464 SELECT * FROM products,images WHERE products.id = images.product_id GROUP BY products.id |
Forum: MySQL Aug 25th, 2009 |
| Replies: 8 Views: 464 select * from products,images where products.id = images.product_id |
Forum: MySQL Aug 24th, 2009 |
| Replies: 5 Views: 526 Don't understand what you are trying to achieve. |
Forum: MySQL Aug 24th, 2009 |
| Replies: 5 Views: 526 select name,score from scores where name = 'jen140' |
Forum: MySQL Aug 24th, 2009 |
| Replies: 1 Views: 355 The first link in your post explains what settings to use.
Don't know about lunarpages, but some hosts need information in two places, an "allow remote" (server setting) and a "white list"... |
Forum: MySQL Aug 21st, 2009 |
| Replies: 1 Views: 327 Remove the http:// from the host, in the mysql_connect. |
Forum: MySQL Aug 17th, 2009 |
| Replies: 2 Views: 390 Yes, you can, but mysql won't accept the double quotes. If the id field is an integer, you can remove them. If it is a string field, use single quotes instead.
There may be an issue when the id... |