MySQL− codes (wildcards, formatting)

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

看到类似的抽认卡:

MS Access − Wildcards

您必须登录才能发表评论。