MySQL− codes (wildcards, formatting)

 0    36 Datenblatt    sir
mp3 downloaden Drucken spielen überprüfen
 
Frage Antworten
Represents zero or more characters
Lernen beginnen
%
bl% finds bl, black, blue, and blob
Represents a single character
Lernen beginnen
_
h_t finds hot, hat, and hit
Represents any single character within the brackets
Lernen beginnen
[]
h[oa]t finds hot and hat, but not hit
Represents any character not in the brackets
Lernen beginnen
^
h[^oa]t finds hit, but not hot and hat
Represents a range of characters
Lernen beginnen
-
c[a-b]t finds cat and cbt
Abbreviated weekday name (Sun to Sat)
Lernen beginnen
%a
Abbreviated month name (Jan to Dec)
Lernen beginnen
%b
Month number (0 to 12)
Lernen beginnen
%c
Day of the month as a numeric value, followed by suffix (1st, 2nd, 3rd, ...)
Lernen beginnen
%D
Day of the month as a numeric value (01 to 31)
Lernen beginnen
%d
Day of the month as a numeric value (0 to 31)
Lernen beginnen
%e
Microseconds (000000 to 999999)
Lernen beginnen
%f
Hour (00 to 23)
Lernen beginnen
%H
Hour (00 to 12)
Lernen beginnen
%h
Hour (00 to 12)
Lernen beginnen
%I
Minutes (00 to 59)
Lernen beginnen
%i
Day of the year (001 to 366)
Lernen beginnen
%j
Hour (0 to 23)
Lernen beginnen
%k
Hour (1 to 12)
Lernen beginnen
%l
Month name in full (January to December)
Lernen beginnen
%M
Month name as a numeric value (00 to 12)
Lernen beginnen
%m
AM or PM
Lernen beginnen
%p
Time in 12 hour AM or PM format (hh: mm: ss AM/PM)
Lernen beginnen
%r
Seconds (00 to 59)
Lernen beginnen
%S
Seconds (00 to 59)
Lernen beginnen
%s
Time in 24 hour format (hh: mm: ss)
Lernen beginnen
%T
Week where Sunday is the first day of the week (00 to 53)
Lernen beginnen
%U
Week where Monday is the first day of the week (00 to 53)
Lernen beginnen
%u
Week where Sunday is the first day of the week (01 to 53). Used with %X
Lernen beginnen
%V
Week where Monday is the first day of the week (01 to 53). Used with %x
Lernen beginnen
%v
Weekday name in full (Sunday to Saturday)
Lernen beginnen
%W
Day of the week where Sunday=0 and Saturday=6
Lernen beginnen
%w
Year for the week where Sunday is the first day of the week. Used with %V
Lernen beginnen
%X
Year for the week where Monday is the first day of the week. Used with %v
Lernen beginnen
%x
Year as a numeric, 4-digit value
Lernen beginnen
%Y
Year as a numeric, 2-digit value
Lernen beginnen
%y

Siehe ähnliche Fiche:

MS Access − Wildcards

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.