MySQL− codes (wildcards, formatting)

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

Musisz się zalogować, by móc napisać komentarz.