Skip to main content

Home/ MySQL/ Group items tagged ...

Rss Feed Group items tagged

Ken Wei

MySQL AB :: Using the New MySQL Query Profiler - 1 views

  • When it comes to overall performance, it's important to remember that the #1 contributor is always a good database design. The second highest contributor to performance is well-tuned SQL code.
  • But a better day has come along in MySQL 5.0.37 with the inclusion of the SQL Profiling utility. This interactive diagnostic aid allows a developer or DBA to gain insight into where a set of SQL code spends its time and the resources it is using.
sloansteddi

Fulltext Searching MySQL field for multiple keywords - 0 views

  • MATCH (patient_1_question.terms) AGAINST ('+$term_1 +$term_2 +$term_3 +$term_4' IN BOOLEAN MODE
  •  
    Fultext search against multiple keywords
sloansteddi

PHP: strtotime - Manual - 0 views

shared by sloansteddi on 22 Feb 09 - Cached
  • The function expects to be given a string containing a US English date format and will try to parse that format into a Unix timestamp
  • echo strtotime("now"), "\n";echo strtotime("10 September 2000"), "\n";echo strtotime("+1 day"), "\n";echo strtotime("+1 week"), "\n";echo strtotime("+1 week 2 days 4 hours 2 seconds"), "\n";echo strtotime("next Thursday"), "\n";echo strtotime("last Monday"), "\n";
Vincent Tsao

MySQL里获取当前week、month、quarter的start_date/end_date - hideto - JavaEye技术网站 - 0 views

  • 当前week的第一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) + 1 DAY) 当前week的最后一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) - 5 DAY) 前一week的第一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) + 8 DAY) 前一week的最后一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) + 2 DAY) 前两week的第一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) + 15 DAY) 前两week的最后一天: select date_sub(curdate(),INTERVAL WEEKDAY(curdate()) + 9 DAY)
  • 当前month的第一天: SELECT concat(date_format(LAST_DAY(now()),'%Y-%m-'),'01') 当前month的最后一天: SELECT LAST_DAY(now()) 前一month的第一天: SELECT concat(date_format(LAST_DAY(now() - interval 1 month),'%Y-%m-'),'01') 前一month的最后一天: SELECT LAST_DAY(now() - interval 1 month) 前两month的第一天: SELECT concat(date_format(LAST_DAY(now() - interval 2 month),'%Y-%m-'),'01') 前两month的最后一天: SELECT LAST_DAY(now() - interval 2 month)
  • 当前quarter的第一天: select concat(date_format(LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-3 month),'%Y-%m-'),'01') 当前quarter的最后一天: select LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-1 month) 前一quarter的第一天: select concat(date_format(LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-6 month),'%Y-%m-'),'01') 前一quarter的最后一天: select LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-4 month) 前两quarter的第一天: select concat(date_format(LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-9 month),'%Y-%m-'),'01') 前两quarter的最后一天: select LAST_DAY(MAKEDATE(EXTRACT(YEAR FROM CURDATE()),1) + interval QUARTER(CURDATE())*3-7 month)
Adildi ldinlio

Building Resilient IP Networks - Cisco Press | Free Ebooks Download - 0 views

  •  
    Building Resilient IP Networks free download at the best library for free networking ebooks download.
Adildi ldinlio

Create Your Own Home Networks - Sams | Free Ebooks Download - 1 views

  •  
    Create Your Own Home Networks free download at the best library for free networking ebooks download.
Adildi ldinlio

Adobe Creative Suite 3 Web Premium All-in-One Desk Reference For Dummies|free ebooks do... - 0 views

  •  
    Adobe Creative Suite 3 Web Premium All-in-One Desk Reference For Dummies free download at the best library for free multimedia ebooks download.
Adildi ldinlio

ASP.NET Solutions - 23 Case Studies|free ebooks download - 0 views

  •  
    ASP.NET Solutions - 23 Case Studies free download at the best library for free asp.net ebooks download.
Adildi ldinlio

PHP and MySQL Web Development third edition|free ebooks download - 0 views

  •  
    PHP and MySQL Web Development 3rd edition free download at the best library for free ebooks download.
‹ Previous 21 - 40 of 231 Next › Last »
Showing 20 items per page