MySQL− codes (wildcards, formatting)

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

Xem flashcards tương tự:

MS Access − Wildcards

Bạn phải đăng nhập để đăng bình luận.