首页 > 数据库技术 > 详细

Mysql 学习-表建立及查看的示例和字符函数的使用

时间:2016-05-28 12:43:06      阅读:150      评论:0      收藏:0      [点我收藏+]
 1 SELECT LEFT(SOMETHIN,5);
 2 SELECT right(KISS GOODBYE,4);
 3 SELECT LOWER(BEAUTIFUL),lcase(WELL);
 4 select upper(black),ucase(Black);
 5 
 6 use sakila;
 7 create table Book
 8 (
 9 bookid int not null,
10 bookname varchar(255) not null,
11 authors varchar(255) not null,
12 info varchar(255) null,
13 comment varchar(255) null,
14 year_publication year,
15 index (year_publication)
16 );
17 show create table book;

 

Mysql 学习-表建立及查看的示例和字符函数的使用

原文:http://www.cnblogs.com/RedCoffeeGod/p/5537109.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!