ctype_latin1.result
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:8k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. drop table if exists t1;
  2. SET NAMES latin1;
  3. CREATE TABLE t1 (a char(1) character set latin1);
  4. INSERT INTO t1 VALUES (0x00),(0x01),(0x02),(0x03),(0x04),(0x05),(0x06),(0x07);
  5. INSERT INTO t1 VALUES (0x08),(0x09),(0x0A),(0x0B),(0x0C),(0x0D),(0x0E),(0x0F);
  6. INSERT INTO t1 VALUES (0x10),(0x11),(0x12),(0x13),(0x14),(0x15),(0x16),(0x17);
  7. INSERT INTO t1 VALUES (0x18),(0x19),(0x1A),(0x1B),(0x1C),(0x1D),(0x1E),(0x1F);
  8. INSERT INTO t1 VALUES (0x20),(0x21),(0x22),(0x23),(0x24),(0x25),(0x26),(0x27);
  9. INSERT INTO t1 VALUES (0x28),(0x29),(0x2A),(0x2B),(0x2C),(0x2D),(0x2E),(0x2F);
  10. INSERT INTO t1 VALUES (0x30),(0x31),(0x32),(0x33),(0x34),(0x35),(0x36),(0x37);
  11. INSERT INTO t1 VALUES (0x38),(0x39),(0x3A),(0x3B),(0x3C),(0x3D),(0x3E),(0x3F);
  12. INSERT INTO t1 VALUES (0x40),(0x41),(0x42),(0x43),(0x44),(0x45),(0x46),(0x47);
  13. INSERT INTO t1 VALUES (0x48),(0x49),(0x4A),(0x4B),(0x4C),(0x4D),(0x4E),(0x4F);
  14. INSERT INTO t1 VALUES (0x50),(0x51),(0x52),(0x53),(0x54),(0x55),(0x56),(0x57);
  15. INSERT INTO t1 VALUES (0x58),(0x59),(0x5A),(0x5B),(0x5C),(0x5D),(0x5E),(0x5F);
  16. INSERT INTO t1 VALUES (0x60),(0x61),(0x62),(0x63),(0x64),(0x65),(0x66),(0x67);
  17. INSERT INTO t1 VALUES (0x68),(0x69),(0x6A),(0x6B),(0x6C),(0x6D),(0x6E),(0x6F);
  18. INSERT INTO t1 VALUES (0x70),(0x71),(0x72),(0x73),(0x74),(0x75),(0x76),(0x77);
  19. INSERT INTO t1 VALUES (0x78),(0x79),(0x7A),(0x7B),(0x7C),(0x7D),(0x7E),(0x7F);
  20. INSERT INTO t1 VALUES (0x80),(0x81),(0x82),(0x83),(0x84),(0x85),(0x86),(0x87);
  21. INSERT INTO t1 VALUES (0x88),(0x89),(0x8A),(0x8B),(0x8C),(0x8D),(0x8E),(0x8F);
  22. INSERT INTO t1 VALUES (0x90),(0x91),(0x92),(0x93),(0x94),(0x95),(0x96),(0x97);
  23. INSERT INTO t1 VALUES (0x98),(0x99),(0x9A),(0x9B),(0x9C),(0x9D),(0x9E),(0x9F);
  24. INSERT INTO t1 VALUES (0xA0),(0xA1),(0xA2),(0xA3),(0xA4),(0xA5),(0xA6),(0xA7);
  25. INSERT INTO t1 VALUES (0xA8),(0xA9),(0xAA),(0xAB),(0xAC),(0xAD),(0xAE),(0xAF);
  26. INSERT INTO t1 VALUES (0xB0),(0xB1),(0xB2),(0xB3),(0xB4),(0xB5),(0xB6),(0xB7);
  27. INSERT INTO t1 VALUES (0xB8),(0xB9),(0xBA),(0xBB),(0xBC),(0xBD),(0xBE),(0xBF);
  28. INSERT INTO t1 VALUES (0xC0),(0xC1),(0xC2),(0xC3),(0xC4),(0xC5),(0xC6),(0xC7);
  29. INSERT INTO t1 VALUES (0xC8),(0xC9),(0xCA),(0xCB),(0xCC),(0xCD),(0xCE),(0xCF);
  30. INSERT INTO t1 VALUES (0xD0),(0xD1),(0xD2),(0xD3),(0xD4),(0xD5),(0xD6),(0xD7);
  31. INSERT INTO t1 VALUES (0xD8),(0xD9),(0xDA),(0xDB),(0xDC),(0xDD),(0xDE),(0xDF);
  32. INSERT INTO t1 VALUES (0xE0),(0xE1),(0xE2),(0xE3),(0xE4),(0xE5),(0xE6),(0xE7);
  33. INSERT INTO t1 VALUES (0xE8),(0xE9),(0xEA),(0xEB),(0xEC),(0xED),(0xEE),(0xEF);
  34. INSERT INTO t1 VALUES (0xF0),(0xF1),(0xF2),(0xF3),(0xF4),(0xF5),(0xF6),(0xF7);
  35. INSERT INTO t1 VALUES (0xF8),(0xF9),(0xFA),(0xFB),(0xFC),(0xFD),(0xFE),(0xFF);
  36. SELECT 
  37. hex(a), 
  38. hex(@u:=convert(a using utf8)),
  39. hex(@l:=convert(@u using latin1)),
  40. a=@l FROM t1;
  41. hex(a) hex(@u:=convert(a using utf8)) hex(@l:=convert(@u using latin1)) a=@l
  42. 00 00 00 1
  43. 01 01 01 1
  44. 02 02 02 1
  45. 03 03 03 1
  46. 04 04 04 1
  47. 05 05 05 1
  48. 06 06 06 1
  49. 07 07 07 1
  50. 08 08 08 1
  51. 09 09 09 1
  52. 0A 0A 0A 1
  53. 0B 0B 0B 1
  54. 0C 0C 0C 1
  55. 0D 0D 0D 1
  56. 0E 0E 0E 1
  57. 0F 0F 0F 1
  58. 10 10 10 1
  59. 11 11 11 1
  60. 12 12 12 1
  61. 13 13 13 1
  62. 14 14 14 1
  63. 15 15 15 1
  64. 16 16 16 1
  65. 17 17 17 1
  66. 18 18 18 1
  67. 19 19 19 1
  68. 1A 1A 1A 1
  69. 1B 1B 1B 1
  70. 1C 1C 1C 1
  71. 1D 1D 1D 1
  72. 1E 1E 1E 1
  73. 1F 1F 1F 1
  74. 1
  75. 21 21 21 1
  76. 22 22 22 1
  77. 23 23 23 1
  78. 24 24 24 1
  79. 25 25 25 1
  80. 26 26 26 1
  81. 27 27 27 1
  82. 28 28 28 1
  83. 29 29 29 1
  84. 2A 2A 2A 1
  85. 2B 2B 2B 1
  86. 2C 2C 2C 1
  87. 2D 2D 2D 1
  88. 2E 2E 2E 1
  89. 2F 2F 2F 1
  90. 30 30 30 1
  91. 31 31 31 1
  92. 32 32 32 1
  93. 33 33 33 1
  94. 34 34 34 1
  95. 35 35 35 1
  96. 36 36 36 1
  97. 37 37 37 1
  98. 38 38 38 1
  99. 39 39 39 1
  100. 3A 3A 3A 1
  101. 3B 3B 3B 1
  102. 3C 3C 3C 1
  103. 3D 3D 3D 1
  104. 3E 3E 3E 1
  105. 3F 3F 3F 1
  106. 40 40 40 1
  107. 41 41 41 1
  108. 42 42 42 1
  109. 43 43 43 1
  110. 44 44 44 1
  111. 45 45 45 1
  112. 46 46 46 1
  113. 47 47 47 1
  114. 48 48 48 1
  115. 49 49 49 1
  116. 4A 4A 4A 1
  117. 4B 4B 4B 1
  118. 4C 4C 4C 1
  119. 4D 4D 4D 1
  120. 4E 4E 4E 1
  121. 4F 4F 4F 1
  122. 50 50 50 1
  123. 51 51 51 1
  124. 52 52 52 1
  125. 53 53 53 1
  126. 54 54 54 1
  127. 55 55 55 1
  128. 56 56 56 1
  129. 57 57 57 1
  130. 58 58 58 1
  131. 59 59 59 1
  132. 5A 5A 5A 1
  133. 5B 5B 5B 1
  134. 5C 5C 5C 1
  135. 5D 5D 5D 1
  136. 5E 5E 5E 1
  137. 5F 5F 5F 1
  138. 60 60 60 1
  139. 61 61 61 1
  140. 62 62 62 1
  141. 63 63 63 1
  142. 64 64 64 1
  143. 65 65 65 1
  144. 66 66 66 1
  145. 67 67 67 1
  146. 68 68 68 1
  147. 69 69 69 1
  148. 6A 6A 6A 1
  149. 6B 6B 6B 1
  150. 6C 6C 6C 1
  151. 6D 6D 6D 1
  152. 6E 6E 6E 1
  153. 6F 6F 6F 1
  154. 70 70 70 1
  155. 71 71 71 1
  156. 72 72 72 1
  157. 73 73 73 1
  158. 74 74 74 1
  159. 75 75 75 1
  160. 76 76 76 1
  161. 77 77 77 1
  162. 78 78 78 1
  163. 79 79 79 1
  164. 7A 7A 7A 1
  165. 7B 7B 7B 1
  166. 7C 7C 7C 1
  167. 7D 7D 7D 1
  168. 7E 7E 7E 1
  169. 7F 7F 7F 1
  170. 80 E282AC 80 1
  171. 81 C281 81 1
  172. 82 E2809A 82 1
  173. 83 C692 83 1
  174. 84 E2809E 84 1
  175. 85 E280A6 85 1
  176. 86 E280A0 86 1
  177. 87 E280A1 87 1
  178. 88 CB86 88 1
  179. 89 E280B0 89 1
  180. 8A C5A0 8A 1
  181. 8B E280B9 8B 1
  182. 8C C592 8C 1
  183. 8D C28D 8D 1
  184. 8E C5BD 8E 1
  185. 8F C28F 8F 1
  186. 90 C290 90 1
  187. 91 E28098 91 1
  188. 92 E28099 92 1
  189. 93 E2809C 93 1
  190. 94 E2809D 94 1
  191. 95 E280A2 95 1
  192. 96 E28093 96 1
  193. 97 E28094 97 1
  194. 98 CB9C 98 1
  195. 99 E284A2 99 1
  196. 9A C5A1 9A 1
  197. 9B E280BA 9B 1
  198. 9C C593 9C 1
  199. 9D C29D 9D 1
  200. 9E C5BE 9E 1
  201. 9F C5B8 9F 1
  202. A0 C2A0 A0 1
  203. A1 C2A1 A1 1
  204. A2 C2A2 A2 1
  205. A3 C2A3 A3 1
  206. A4 C2A4 A4 1
  207. A5 C2A5 A5 1
  208. A6 C2A6 A6 1
  209. A7 C2A7 A7 1
  210. A8 C2A8 A8 1
  211. A9 C2A9 A9 1
  212. AA C2AA AA 1
  213. AB C2AB AB 1
  214. AC C2AC AC 1
  215. AD C2AD AD 1
  216. AE C2AE AE 1
  217. AF C2AF AF 1
  218. B0 C2B0 B0 1
  219. B1 C2B1 B1 1
  220. B2 C2B2 B2 1
  221. B3 C2B3 B3 1
  222. B4 C2B4 B4 1
  223. B5 C2B5 B5 1
  224. B6 C2B6 B6 1
  225. B7 C2B7 B7 1
  226. B8 C2B8 B8 1
  227. B9 C2B9 B9 1
  228. BA C2BA BA 1
  229. BB C2BB BB 1
  230. BC C2BC BC 1
  231. BD C2BD BD 1
  232. BE C2BE BE 1
  233. BF C2BF BF 1
  234. C0 C380 C0 1
  235. C1 C381 C1 1
  236. C2 C382 C2 1
  237. C3 C383 C3 1
  238. C4 C384 C4 1
  239. C5 C385 C5 1
  240. C6 C386 C6 1
  241. C7 C387 C7 1
  242. C8 C388 C8 1
  243. C9 C389 C9 1
  244. CA C38A CA 1
  245. CB C38B CB 1
  246. CC C38C CC 1
  247. CD C38D CD 1
  248. CE C38E CE 1
  249. CF C38F CF 1
  250. D0 C390 D0 1
  251. D1 C391 D1 1
  252. D2 C392 D2 1
  253. D3 C393 D3 1
  254. D4 C394 D4 1
  255. D5 C395 D5 1
  256. D6 C396 D6 1
  257. D7 C397 D7 1
  258. D8 C398 D8 1
  259. D9 C399 D9 1
  260. DA C39A DA 1
  261. DB C39B DB 1
  262. DC C39C DC 1
  263. DD C39D DD 1
  264. DE C39E DE 1
  265. DF C39F DF 1
  266. E0 C3A0 E0 1
  267. E1 C3A1 E1 1
  268. E2 C3A2 E2 1
  269. E3 C3A3 E3 1
  270. E4 C3A4 E4 1
  271. E5 C3A5 E5 1
  272. E6 C3A6 E6 1
  273. E7 C3A7 E7 1
  274. E8 C3A8 E8 1
  275. E9 C3A9 E9 1
  276. EA C3AA EA 1
  277. EB C3AB EB 1
  278. EC C3AC EC 1
  279. ED C3AD ED 1
  280. EE C3AE EE 1
  281. EF C3AF EF 1
  282. F0 C3B0 F0 1
  283. F1 C3B1 F1 1
  284. F2 C3B2 F2 1
  285. F3 C3B3 F3 1
  286. F4 C3B4 F4 1
  287. F5 C3B5 F5 1
  288. F6 C3B6 F6 1
  289. F7 C3B7 F7 1
  290. F8 C3B8 F8 1
  291. F9 C3B9 F9 1
  292. FA C3BA FA 1
  293. FB C3BB FB 1
  294. FC C3BC FC 1
  295. FD C3BD FD 1
  296. FE C3BE FE 1
  297. FF C3BF FF 1
  298. DROP TABLE t1;
  299. SELECT 1 as