Today to introduce six more useful MySQL SQL statements, probably a lot of people through PHP to achieve these functions.
1. Calculation of years
You want to figure out how old this person is by birthdays.
SELECT Date_format (From_days to_days
SQL statement Query
The table structure is like this:
ID name Sex
1 Three men
2 Wang Shinan
3 Lili Girl
4 Three Men
5 Chao Liuan
6 Noble Male
7 Wang Shiju
8 Noble Women
9 Three Girls
How can I query the following results with an SQL statement
Aggregate statements (Sum,min,max,avg,count) are executed more than the HAVING clause in the query process. The WHERE clause takes precedence over the aggregate statement (SUM,MIN,MAX,AVG,COUNT) in the query process.
The HAVING clause is similar
For non-banks and other stringent requirements of the business, if a record appears or does not appear in the search record, it is within tolerable bounds, so the deadlock should first be considered as to whether our business logic tolerates or does
If you own a website or a standalone blog, or how much of your work is related to the Internet, you must have some knowledge of SEO (Search engine optimization). This article will list 20 SEO areas of the most commonly used terminology and concepts,
Before there are many kinds of statistics, tracking AdSense click Software or Services, Google AdSense Group, although the statement that the third party statistics do not violate the policy, but then modified the AdSense code, Make the vast
Why do I have to do unit costing?
General bidders (Semer) will be statistics Baidu bidding consumption, website IP,PV, number of clicks, Bounce rate, average click Price, CTR, effective dialogue rate, retention rate, door-to-door rate and turnover
Ajax| Program
Polling Include_once ("server1.server.php"); #servidor para xajax$xajax->printjavascript ();?>
Global $db;
$poll = $db->getrow ("SELECT * from Tbl_poll ORDER BY poll_id desc LIMIT 1");$poll _id = $poll ["poll_id"];$pollitems = $db-
Ajax| Server | display
Ajax Hack Hack 13 display server information in text or textarea This hack is about not refreshing the page to display server information.Users can interact with the server component by entering text and without waiting for
Ajax
Recently studied Ajax, according to do a few examples, feel more novel.
The first is the automatic completion of the function that AutoComplete, concrete examples can be seen here: http://www.b2c-battery.co.uk
Enter a product model in the
With the development of the network, the browser has a stronger ability to render more advanced code, we are gradually achieving the goal across all platforms and browsers. Not only can we spend less time making sure our box model looks normal in
Article Introduction: a common way to create custom types is to combine the constructor pattern with the prototype pattern. The constructor pattern is used to define instance properties, which are used to define methods and shared properties. As a
javascript| Tutorial
Using OLE Automation in JavaScript7. How to deal with set objectsThe automation object has the same structure as some of its JScript objects. It exposes a variety of methods and properties that we can handle. If you
javascript| Tutorial
Using JavaScript in HoTMetaL
5. How to write a script to check the date of the last modification
In this tutorial you will learn how to write a macro to check if any program has modified a file using HoTMetaL. This macro
javascript| Tutorial
Using JavaScript in HoTMetaL5. How to write a script to check the date of the last modificationIn this tutorial you will learn how to write a macro to check if any program has modified a file using HoTMetaL. This macro includes
access|javascript| Data | database
Choose a Blog from Kindwell
It's been a lot of effort these days. Find JavaScript on the web to connect to an Access database,After finishing the summary, finally write a paragraph can be effectively executed
JavaScript we often have to make a number of choices for users to process, such as allowing users to select a list of items to delete the selected items and so on. Here's an example of how PHP and JavaScript deal with multiple choices, respectively.
Website optimization
1, the choice of valid keywords:
Keyword is a description of your product and service words, select the appropriate keyword is the first step to build a high ranking site. An important technique for selecting keywords is to pick
xml| Conversion
To give you a class that converts XML to dataset:
Xmldatasetconvert This class provides four methods:
1. Converting XML object content strings to datasets2. Convert an XML file to a dataset3. Convert a DataSet to an XML object string4
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.