MySQL− codes (wildcards, formatting)

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

Voir fiche connexe:

MS Access − Wildcards

Vous devez vous connecter pour poster un commentaire.