Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

MySQL | Forum profile

Forum profile page for MySQL on http://www.sitepointforums.com. This report page is the aggregated overview from a single forum: MySQL, located on the Message Board at http://www.sitepointforums.com. This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period. Additional forum profile information for "MySQL" on the Message Board at http://www.sitepointforums.com is also shown in the following ways:

1) Latest Active Threads
2) Hot Threads for Last Week

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.

Site: SitePoint : New Articles, Fresh Thinking for Web Developers and Designers - MySQL (site profile, domain info sitepointforums.com)
Title: MySQL
Url: http://www.sitepoint.com/forums/forumdisplay.ph...
Users activity: 34 posts per thread
Forum activity: 78 active threads during last week
 

Posting activity on MySQL:

  Week Month 3 Months
Threads: 78 261 671
Post: 253 866 2,256
 

MySQL Posting activity graph:

Posts by:  day  week  month 

Top authors during last week:

Name
Posts
r937
61
user's latest post:
Search MySQL Tree String
Published (2009-11-14 21:51:00)
don't forget that FIND_IN_SET (or similar approaches) means the query will not scale, i.e. the more rows you have, the slower the query gets, because it has to do a table scan this is one of the problems of violating first normal form (storing multiple values in a single column)
guido2004
13
user's latest post:
Help with database table
Published (2009-11-13 06:18:00)
Using _ instead of - at least saves you from having to use backticks. You can also use non of them, and write everything as one long word, though it might become a bit difficult to read. I always avoid having to use backticks, because I don't have them on my keyboard.
Antnee
11
user's latest post:
Using stored procedures to move...
Published (2009-11-13 17:16:00)
OK, I've got it working as I want it to, but it's a bit messy and could really do with cleaning up: MySQL Code: BEGIN     DECLARE c BIGINT ( 10 ) ;      DECLARE x BIGINT ( 10 ) ;     DECLARE passed BIGINT ( 10 ) ;     DECLARE failed BIGINT ( 10 ) ;     SET x = 0 ;...
PHPycho
11
user's latest post:
Perfect INNER JOIN query on...
Published (2009-11-13 22:11:00)
Ok let me explain about tables: shops (it's clear i think) widgets (it's clear too) shops_widgets (shop & widget are related here) widget_params (params of a widgets are related here) shop_widget_params (relates the param values of a widget) What i want to fetch is: widget_params.param & shop_widget_params.param_value And Where condition would be shop_id Hope this is much clearer now.
SpacePhoenix
9
user's latest post:
issue in storing arabic...
Published (2009-11-14 16:40:00)
What server-side langauge are you using? If it's php try adding this to the line imediatly after the database connection to MySQL is established: PHP Code: mysql_set_charset ( 'utf8' , $link_id );
taralee02
8
user's latest post:
#1045 - Access denied for user...
Published (2009-11-06 11:58:00)
ok...they didn't oh well ok my error is.... MySQL said: #1045 - Access denied for user 'root'@'localhost' (using password: YES) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. and go see images I was trying...
ogden2k
7
user's latest post:
Sort text fields with numbers in...
Published (2009-11-13 14:22:00)
Thank you Rudy, you have been very helpful. I have it working now.
jasper1106
7
user's latest post:
Removing commas at front of entry
Published (2009-11-09 11:14:00)
Thanks R, think im going to have to look for a developer in SQL as this is double dutch to me. :S
jsbarra
6
user's latest post:
MYSQL INSERT only if entries...
Published (2009-11-10 23:23:00)
ah ha! thanks crmalibu! You seem to always help me out thanks a lot!!
Ronan
6
user's latest post:
match records with same value in...
Published (2009-11-11 21:25:00)
Let me rephrase what I am trying to do. - have a form to post 2 users ID - once I posted the 2 IDs, the query should check whether these 2 IDs have the same transaction code in the table. - If there is any, i want to fetch and print out the transaction code that both records have. that is what I am try to accomplish. Thanks
 

Latest active threads on MySQL::

SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 1 day, 6 hours ago (2009-11-15 16:52:00)  by r937
helpful tip for posting a question about a query: don't make us scroll you may not be able to achieve the same artistic and aesthetic result as this, but you gots to try, man Code: SELECT sections.* , t.id AS pid , t.stitle , t.pstatus , t.pic FROM sections LEFT JOIN ( SELECT id , stitle , pstatus , ...
Thread:  Show this thread (3 posts)   Thread info: urgent help in sql command Size: 1,390 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: urgent help in sql command :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 1 day, 8 hours ago (2009-11-15 14:55:00)  by r937
pls move either to php or to Questions forum
Thread:  Show this thread (6 posts)   Thread info: problem with SELECT query Size: 44 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: problem with SELECT query :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 1 day, 19 hours ago (2009-11-15 03:23:00)  by r937
yes it's possible -- just don't repeat the WHERE keyword Code: SELECT ... FROM ... WHERE MATCH(column1) AGAINST('word word' IN BOOLEAN MODE) AND MATCH(column2) AGAINST('word')
Thread:  Show this thread (5 posts)   Thread info: Multiple Where Clauses (How to?) Size: 490 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Multiple Where Clauses (How to?) :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 6 days, 20 hours ago (2009-11-10 02:17:00)  by guido2004
You can't add the WHERE clause to SHOW COLUMNS, and there is no need for it too. SHOW COLUMNS gives you the names of the columns present in the table, it doesn't give you any data. Correction: you can add a WHERE to SHOW COLUMNS, but not a WHERE that uses that table's column names. Read this: http://dev.mysql.com/doc/refman/5.1/...w-columns.h tml
Thread:  Show this thread (4 posts)   Thread info: Problem query for outputting MySQL as a CSV file Size: 459 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Problem query for outputting MySQL as a CSV file :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 2 days, 1 hour ago (2009-11-14 21:21:00)  by SirAdrian
Use the find_in_set() function.
Thread:  Show this thread (4 posts)   Thread info: Search MySQL Tree String Size: 145 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Search MySQL Tree String :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 1 day, 18 hours ago (2009-11-15 04:35:00)  by killerblack
bump anyone??
Thread:  Show this thread (2 posts)   Thread info: Help installing mysql 5.1.40 on my ubuntu plz Size: 20 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Help installing mysql 5.1.40 on my ubuntu plz :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 2 days, 10 hours ago (2009-11-14 12:10:00)  by rguy84
After some looking, I found: http://forums.mysql.com/read.php?103...144#msg-210 144 Try what was suggested there. I don't know Arabic, but have you tried to get data out -- like onto a webpage, how does it display?
Thread:  Show this thread (4 posts)   Thread info: issue in storing arabic characters..help please Size: 315 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: issue in storing arabic characters..help please :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 2 days, 1 hour ago (2009-11-14 21:47:00)  by r937
when you have a long series of values... Code: INSERT INTO sometable (column, column, column, ... ) VALUES ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ( value, value, value, ... ) , ... you can easily ...
Thread:  Show this thread (3 posts)   Thread info: Query too long Size: 1,574 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Query too long :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 1 week ago (2009-11-09 04:30:00)  by r937
2000 new rows per day = less than a million in a year this is not a small table, but it's also not a very large table either how many tables in your database? sounds like only one what kind of indexes have you defined? are any of your queries running slowly, and if so, have you done an EXPLAIN on them?
Thread:  Show this thread (7 posts)   Thread info: How to optimise a large database Size: 354 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to optimise a large database :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
SitePoint : New Articles, Fresh Thinking for Web Developers and Designers
Started 2 days, 22 hours ago (2009-11-14 00:20:00)  by Dan Grossman
Join all 4 tables on their associated keys, that's all there is to it.
Thread:  Show this thread (3 posts)   Thread info: Do I need two queries? Size: 70 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Do I need two queries? :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
 

Hot threads for last week on MySQL::

MySQL
Started 3 days, 14 hours ago (2009-11-13 08:13:00)  by r937
is there always a dash before the number? Code: ORDER BY CAST(SUBSTRING_INDEX(c_title ,'-',-1) AS UNSIGNED)
Thread:  Show this thread (14 posts)   Thread info: Sort text fields with numbers in natural order Size: 422 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Sort text fields with numbers in natural order :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 3 days, 15 hours ago (2009-11-13 07:32:00)  by r937
writing "raat" code (row-at-a-time) like you're suggesting will, of course, work but if it's me, i would simply load the csv into a "landing" table (a table built to hold the data as is from the csv) then i would use a series of simple SQL statements to manipulate the data from there into the target tables
Thread:  Show this thread (13 posts)   Thread info: Using stored procedures to move data between tables Size: 370 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Using stored procedures to move data between tables :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 1 week ago (2009-11-09 14:43:00)  by SJH
Untested, but should work: sql Code: UPDATE mytable SET display = CASE WHEN display = 1 THEN 0 ELSE 1 END WHERE title = 'My article title' ; Btw, TINYINT might be a more suitable datatype for that column
Thread:  Show this thread (12 posts)   Thread info: Making an sql "toggle" using a single query? Size: 986 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Making an sql "toggle" using a single query? :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 6 days, 15 hours ago (2009-11-10 07:12:00)  by Cups
This sounds like an sql question rather than a PHP one, you'd likely get a better response from someone over there (or the Mysql forum). Probably be a good idea of you could give a couple of examples of your criteria for "similar value" too.
Thread:  Show this thread (11 posts)   Thread info: match records with same value in a column Size: 266 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: match records with same value in a column :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 1 week, 3 days ago (2009-11-06 06:50:00)  by SJH
Something like this maybe: SELECT SUBSTRING(metakey, 2, (LEN(metakey) - 2)) AS metakey FROM content WHERE metakey LIKE ', %';
Thread:  Show this thread (15 posts)   Thread info: Removing commas at front of entry Size: 205 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Removing commas at front of entry :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 1 week ago (2009-11-09 12:30:00)  by Fallen Angel
There are a couple of collations for Spanish - one for modern Spanish, and one for traditional Spanish, xxx_spanish_ci and xxx_spanish2_ci (latin1_spanish_ci) (info from here: http://dev.mysql.com/doc/refman/5.0/...code-sets.h tml ). I've just come across this post as well that might be useful to you.
Thread:  Show this thread (10 posts)   Thread info: Storing Both English and Spanish information in the same table Size: 520 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Storing Both English and Spanish information in the same table :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 4 days, 2 hours ago (2009-11-12 20:47:00)  by r937
column name? atributes? articles? values? i think maybe you should try to explain in english what the database is supposed to do for you if you're storing column names in a user table (this is called meta-data ) there's a very good chance that you have a poor design
Thread:  Show this thread (9 posts)   Thread info: Huge problem for me! Please help if you can! Size: 308 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Huge problem for me! Please help if you can! :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 5 days ago (2009-11-11 22:12:00)  by Kevin Yank
Sure, you can make your ORDER BY clause more complex, so that it first sorts by whether the flag column is set to 1, and then sorts by RAND(): SELECT * FROM table ORDER BY flag = 1, RAND() LIMIT 10
Thread:  Show this thread (8 posts)   Thread info: How to select a group of random rows? Size: 212 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: How to select a group of random rows? :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
Started 3 days, 18 hours ago (2009-11-13 04:23:00)  by guido2004
In your INSERT, you can't use NULL instead of a column name. Since the first column is an autoincrement field, try eliminating the NULL and see what happens.
Thread:  Show this thread (8 posts)   Thread info: Help with database table Size: 157 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: Help with database table :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."
MySQL
RE: MySQL-Front - 8 new posts
Started 1 week ago (2009-11-09 17:53:00)  by r937
it morphed into HeidiSQL, which is doing real nicely
Thread:  Show this thread (8 posts)   Thread info: MySQL-Front Size: 150 bytes
Related Threads: Same Site | All Sites
Customize:  Customize "RE: MySQL-Front :: MySQL :: SitePoint : New Articles, Fresh Thinking for Web D..."