Search Results

Showing results 1 to 40 of 144
Search took 0.04 seconds.
Search: Posts Made By: pritaeas ; Forum: MySQL and child forums
Forum: MySQL 10 Days Ago
Replies: 1
Views: 272
Posted By pritaeas
`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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Solved: exclude
Views: 422
Posted By pritaeas
Something like this:

select * from product where id not in (select product_id from discount)
Forum: MySQL Oct 30th, 2009
Replies: 1
Solved: php mysql
Views: 442
Posted By pritaeas
$strSQL = "SELECT DISTINCT area FROM hospital where area like '%$strSearchVal' ";
Forum: MySQL Oct 29th, 2009
Replies: 2
Views: 535
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
Can you post what you did ?
Forum: MySQL Oct 15th, 2009
Replies: 7
Views: 467
Posted By pritaeas
You can use mysqldump. You can find examples in this site.
Forum: MySQL Oct 13th, 2009
Replies: 2
Views: 420
Posted By pritaeas
This will help:

http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html
Forum: MySQL Oct 9th, 2009
Replies: 5
Views: 467
Posted By pritaeas
Did you check the links, and tried it ?
Forum: MySQL Oct 9th, 2009
Replies: 5
Views: 467
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
Duplicate again.
Forum: MySQL Oct 8th, 2009
Replies: 9
Views: 474
Posted By pritaeas
$sql="SELECT * FROM $tbl1_name WHERE sex='$show_all' AND age BETWEEN '$from' AND '$to'";
Forum: MySQL Oct 5th, 2009
Replies: 9
Views: 641
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
insert into table (mycolumn) values (encode('myvalue', 'mykey'))
select decode(mycolumn, 'mykey') from table
Forum: MySQL Sep 16th, 2009
Replies: 5
Views: 464
Posted By pritaeas
http://dev.mysql.com/doc/refman/5.1/en/encryption-functions.html
Forum: MySQL Sep 7th, 2009
Replies: 2
Views: 446
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
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
Posted By pritaeas
EUIPMENT_FEATURES_MVIEW

shouldnt that be

EQUIPMENT_FEATURES_MVIEW
Forum: MySQL Aug 27th, 2009
Replies: 8
Views: 588
Posted By pritaeas
I think your group by and where are in the wrong order.
Forum: MySQL Aug 26th, 2009
Replies: 2
Views: 449
Posted By pritaeas
http://dev.mysql.com/doc/refman/5.1/en/server-logs.html
Forum: MySQL Aug 26th, 2009
Replies: 2
Views: 567
Posted By pritaeas
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
Solved: join assist
Views: 464
Posted By pritaeas
SELECT * FROM products,images WHERE products.id = images.product_id GROUP BY products.id
Forum: MySQL Aug 25th, 2009
Replies: 8
Solved: join assist
Views: 464
Posted By pritaeas
select * from products,images where products.id = images.product_id
Forum: MySQL Aug 24th, 2009
Replies: 5
Solved: Line Number?
Views: 526
Posted By pritaeas
Don't understand what you are trying to achieve.
Forum: MySQL Aug 24th, 2009
Replies: 5
Solved: Line Number?
Views: 526
Posted By pritaeas
select name,score from scores where name = 'jen140'
Forum: MySQL Aug 24th, 2009
Replies: 1
Views: 355
Posted By pritaeas
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
Posted By pritaeas
Remove the http:// from the host, in the mysql_connect.
Forum: MySQL Aug 17th, 2009
Replies: 2
Views: 390
Posted By pritaeas
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...
Showing results 1 to 40 of 144

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC