发表于: 2017-03-06 21:40:52
2 1639
今天完成的任务:
一:理论知识的学习
1:学习了sql语言,对“增查改删”的一些常用语句有了初步的认识。
2:通过和师兄交流,了解到人与计算机交流的本质是通过编程语言告诉计算机如何调用其资源完成人们期望的使用。机器码-汇编-编程语言-软件-人。
二:上机实践建立数据表
1:建立数据表
mysql> create table student_information(name varchar(8),qq int,study_type varchar(16),entrydate date,graduated_from varchar(64),id int not null auto_increment primary key);
Query OK, 0 rows affected (0.53 sec)
2:添加列
mysql> alter table student_information add wish varchar(255);
Query OK, 0 rows affected (0.42 sec)
Records: 0 Duplicates: 0 Warnings: 0
mysql> alter table student_information add introduce_assistant varchar(8);
Query OK, 0 rows affected (0.45 sec)
Records: 0 Duplicates: 0 Warnings: 0
3:查找内容
mysql> select*from student_information;
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+------------------+-----------+
| name | qq | study_type | entrydate | graduated_from | id | note_url | wish | introduce_assistant | verify_assistant | konw_from |
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+------------------+-----------+
| XXX | 2811235548 | java | 2017-03-05 | XX理工大学 | 1176 | http://www.jnshu.com/daily/16753?uid=8945 | 是非成败 | XX | XXX | 知乎 |
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+------------------+-----------+
4:修改id数据类型为long型
mysql> alter table student_information modify id bigint;
Query OK, 1 row affected (1.03 sec)
Records: 1 Duplicates: 0 Warnings: 0
5:建立姓名索引
mysql> create index name_idx on student_information(name);
Query OK, 0 rows affected (0.50 sec)
Records: 0 Duplicates: 0 Warnings: 0
6:将插入数据wish内容改为“老大最帅”
mysql> update student_information set wish = '老大最帅' where id = 1176;
Query OK, 1 row affected (0.05 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select*from student_information;
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+-----------
-------+-----------+-----------+-----------+
| name | qq | study_type | entrydate | graduated_from | id | note_url | wish | introduce_assistant | verify_ass
istant | konw_from | create_at | update_at |
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+-----------
-------+-----------+-----------+-----------+
| XX | 281123456| java | 2017-03-05 |XX理工大学 | 1176 | http://www.jnshu.com/daily/16753?uid=8945 | 老大最帅 | XX | XXX
| 知乎 | NULL | NULL |
+--------+-----------+------------+------------+--------------------+------+-------------------------------------------+--------------+---------------------+-----------
-------+-----------+-----------+-----------+
1 row in set (0.00 sec)
7:导出sql文件
8:关于Navicat部分
明天的计划:
一:2小时之内将今天进行的sql数据建表流程再操作一遍,巩固用到的各种语句,将记下的遗留问题尝试解决。
二:进行任务一步骤11——17的学习,争取完成更多。
三:理论学习Java的来龙去脉,在it中的位置。
遇到的问题:
实践操作中各种卡壳,见下图,希望明天能解决掉上面的疑问。
收获:
对编程的认识更深一步,对自己的实践能力汗颜,思维中成型的东西,要落到具体操作中,还有一个实化的过程。有一些想不明白问题,只有操作了才能遇到并了解,比如打字字母错误,报错要找半天,但它确实占用了时间成本。思维逻辑链条不完整,操作中才发现,需要细化步骤。痛并快乐着。加油!
评论