Forum: MySQL 33 Days Ago |
| Replies: 5 Views: 493 Evn f ur prfsnal u nd 2 shw efrt. <--- This is hard to read
Even if you're a professional you need to show effort before we help you. |
Forum: MySQL 33 Days Ago |
| Replies: 5 Views: 493 I'm gonna go head and say no. (http://www.daniweb.com/forums/announcement8-2.html) |
Forum: MySQL Oct 6th, 2009 |
| Replies: 4 Views: 464 Might want to take a look in your textbook or around the MySQL documentation before you start asking homework questions without showing work. |
Forum: MySQL Oct 6th, 2009 |
| Replies: 4 Views: 405 Wow, I can't believe I suggested that. That is insanely slow and stupid, sorry. Just do
$search = str_replace(' ', '%', $search); |
Forum: MySQL Oct 5th, 2009 |
| Replies: 9 Views: 641 That's called the ternary operator.
$somevar = (condition) ? (true case) : (false case);
// so
$test = true;
$somevar = $test ? "Hello" : "Goodbye";
// is the same as
$test = true; |
Forum: MySQL Oct 5th, 2009 |
| Replies: 4 Views: 405 $search = join('%', explode(' ', $search));
/*
For Example:
search = 'John Smith';
search = join('%', explode(' ', search));
search now = John%Smith
*/ |
Forum: MySQL Oct 2nd, 2009 |
| Replies: 2 Views: 457 A) Why is your ID field TEXT?
B)
SELECT MAX(CAST(id AS DECIMAL)) as id FROM object |
Forum: MySQL Sep 15th, 2009 |
| Replies: 1 Views: 344 Show your current query and we can walk you through what to fix. |
Forum: MySQL Jul 13th, 2009 |
| Replies: 4 Views: 273 When an index is created it takes up space on the filesystem. So as long as you're fine with taken up more space to get more speed indices are the way to go. |
Forum: MySQL Jul 13th, 2009 |
| Replies: 4 Views: 273 Make sure you have indices on the column you're searching, that's probably the easiest way to speed things up but it's a size vs. speed trade-off. |
Forum: MySQL Jun 22nd, 2009 |
| Replies: 2 Views: 847 Going directly to the documentation usually helps:
http://dev.mysql.com/doc/refman/4.1/en/user-account-management.html |
Forum: MySQL Jun 22nd, 2009 |
| Replies: 6 Views: 606 Like I said, what is the data type for that field? |
Forum: MySQL Jun 22nd, 2009 |
| Replies: 6 Views: 606 hopefully you have a WHERE clause in that query and what is the datatype of that field? |
Forum: MySQL Jun 22nd, 2009 |
| Replies: 1 Views: 365 MySQL Query Browser directly from MySQL http://dev.mysql.com/downloads/gui-tools/ |
Forum: MySQL Jun 18th, 2009 |
| Replies: 2 Views: 1,045 As far as I know there's no way to halt a SELECT statement mid-query. You'd either have to write a stored procedure or have whatever language you're using to interact with MySQL handle this logic. |
Forum: MySQL Jun 13th, 2009 |
| Replies: 3 Views: 722 This depends on the database engine you're currently using. By default MySQL uses MyISAM (Also uses MyISAM internally). However, MyISAM only supports table-level locking so when you're writing it... |
Forum: MySQL Jun 10th, 2009 |
| Replies: 9 Views: 3,296 http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html Use the language documentation before going to the forums please. |
Forum: MySQL Jun 9th, 2009 |
| Replies: 4 Views: 1,483 Give me a real-world example of what you want because you're sort of all over the place on how you want the query to work. You really only have a few options
-- LIKE matches... |
Forum: MySQL Jun 9th, 2009 |
| Replies: 4 Views: 1,483 You might be able to do
WHERE user_role IN ('A', 'S', 'D') |
Forum: MySQL Jun 4th, 2009 |
| Replies: 4 Views: 676 This should be in the PHP forum, but at the same time it should not be. Read the FAQ in the PHP forum before you post again. |