« first day (699 days earlier)      last day (4249 days later) » 

11:01 PM
SELECT user.userID, images.url FROM user,images WHERE user.userID=images.userID AND images.userID=rand()?
 
@JamaicaBob SELECT * FROM table JOIN ( SELECT yourfield FROM table GROUP BY yourfield LIMIT 1)?
@JamaicaBob SELECT u1.userID, i.url FROM user u1 JOIN images i ON u1.userID = i.userID JOIN (SELECT userID FROM user GROUP BY userID ORDER BY RAND() LIMIT 1) u2 ON u1.userID = u2.userID
(untested)
 
whoa thats a long one
 
(fixed)
 
im gonna test something, be back bit later
 
(again)
@Jocelyn Are mysql field names case sensitive? Been doing a load of MSSQL recently and I can't remember any more
 
11:08 PM
@DaveRandom
4
Q: Is field and table name case sensitive in MySQL?

shinIf I have field names called category_id and Category_Id, are they different? And if I have table name called category and Category, are they different?

Does any of you know where I can find detailed explanations about how to create efficient compound indexes on an innodb table? I already read the mysql documentation and several questions/answers on SO.
 
Right so in short, "It depends, but treat them as if they are for portability"?
 
@DaveRandom yes, it is safer. I use only lowercase.
I have a table with 30 columns, 400 000 rows
the data is never changed
I do a lot of SELECT, but the WHERE part is always different
 
field names aren't case sensitive...table and database names might be
 
my queries look like: SELECT * FROM my_table WHERE field1=0 AND field2<=4 AND field3=0 AND field4<=2 AND field5<=1 AND field6=0 ...
 
depending on the file system and the db engine
 
11:13 PM
there is a condition on each field
I use Innodb
 
innodb, i think, doesn't care about case. myisam, it depends on the file system
cause tables are just files in myisam
 
the conditions are either field=0 or field<=some_positive_value
 
has this user been in the chat ?
did someone change username recently ?
yes ... looks that way
 
28 all time rooms | 683328 all time messages
 
I get the feeling that it's the Truth guy
 
@tereško You can see when the username changed here: chat.stackoverflow.com/users/871050/…
 
oh .. i was right
 
has anyone used Twig before?
 
Probably. Does anyone still use it? I doubt it.
 
I'm trying to set a variable in Twig to a long math equation
@DaveRandom Does anyone still use it? Absolutely!!
 
(I meant specifically anyone in here)
 
11:59 PM
@DaveRandom Ah. I see.
 

« first day (699 days earlier)      last day (4249 days later) »