Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 24 Δεκ 2012 · Examples: If you compare a DATETIME to two DATE values, convert the DATE values to DATETIME values. If you use a string constant such as '2001-1-1' in a comparison to a DATE, cast the string to a DATE."

  2. Here is an example that uses date functions. The following query selects all rows with a date_col value from within the last 30 days: . mysql> SELECT something FROM tbl_name-> WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;. The query also selects rows with dates that lie in the future.

  3. 12 Φεβ 2024 · Check if String Contains Certain Data in MySQL Table Using SELECT With the LOCATE() Function. One effective method to check if a particular string occurs in a MySQL table is by utilizing the SELECT statement along with the LOCATE() function.

  4. 13 Ιαν 2018 · $add_24 = $i + 1440; $format_second = date("Y-m-d H:i", strtotime('-'.$add_24.' minutes')); $p_price = mysqli_fetch_array(mysqli_query($con, "SELECT created FROM products WHERE created LIKE '$format_second%'"));

  5. 12 Μαΐ 2024 · In this tutorial, we’ll look at querying rows that contain given words or phrases in SQL. We tested our examples on MS SQL Server 2022, PostgreSQL 14, and MySQL 8 databases. However, most methods we discuss should be available in other versions of these SQL implementations and other SQL dialects. 2. Problem Statement

  6. 1 Ιαν 2018 · Master the art of date and time manipulation in MySQL with essential functions like NOW(), DATE_SUB(), DATE_ADD(), and more. Learn how to extract, compare, and calculate timestamps for effective data querying.

  7. 25 Μαΐ 2011 · Two options: Use the LIKE keyword, along with percent signs in the string. select * from table where field like '%a%' or field like '%b%'.

  1. Γίνεται επίσης αναζήτηση για