上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页
摘要: 主外键关系 -- 副表 create table stu ( s_no int(8) not null primary key auto_increment, s_name varchar(12), s_sex varchar(4), s_score double(6,1) ); -- 主表 cre 阅读全文
posted @ 2021-09-07 10:44 阿向向 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1、在数据库中新建一张 product表:包括字段p_id(int)、p_Name(varchar)、price(double)、num(int)、company(varchar)、address(varchar) create table product ( p_id int not null p 阅读全文
posted @ 2021-09-06 17:29 阿向向 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 测试、练习 -- 创建数据库 create database webapp1 charset utf8mb4; -- 创建用户名、密码 create user'webapp1'@'localhost'identified by'webapp1'; -- 授权 grant all on webapp1 阅读全文
posted @ 2021-09-06 15:40 阿向向 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 数据库 关系型 Mysql Oracle Sql-server SQL-lite DB2 Access Sybase 非关系型 Mongodb Redis HBASE Memcache 区别 储存容量 储存结构 表的字段数量是否可扩展、类型是否一定 访问效率 Mysql 数据库 关系 一对一 一对多 阅读全文
posted @ 2021-09-06 15:39 阿向向 阅读(35) 评论(0) 推荐(0) 编辑
摘要: ##编写代码 package com.xiang.lesson01; //线程开启不一定立即执行,由cpu 高度执行 //创建方式一,继承Thread类,重写run方法,调用start开启线程 public class TestThread1 extends Thread{ @Override pu 阅读全文
posted @ 2021-09-05 17:00 阿向向 阅读(59) 评论(0) 推荐(0) 编辑
摘要: ##编写代码 package com.xiang.lesson04; import java.io.FileOutputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.Mal 阅读全文
posted @ 2021-09-05 16:01 阿向向 阅读(64) 评论(0) 推荐(0) 编辑
摘要: ##编写代码 package com.xiang.lesson04; import java.net.MalformedURLException; import java.net.URL; public class UrlDemo01 { public static void main(String 阅读全文
posted @ 2021-09-05 15:42 阿向向 阅读(26) 评论(0) 推荐(0) 编辑
摘要: #编写代码 ##1,接收端 UdpServerDemo01 package com.xiang.lesson03; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.SocketExcept 阅读全文
posted @ 2021-09-05 14:33 阿向向 阅读(275) 评论(0) 推荐(0) 编辑
摘要: #编写代码 ##1,服务端接收文件 TcpServerDemo02 package com.xiang.lesson02; import java.io.*; import java.net.ServerSocket; import java.net.Socket; import java.nio. 阅读全文
posted @ 2021-09-05 13:49 阿向向 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #编写代码 ##1,服务端接收文件 TcpServerDemo02 package com.xiang.lesson02; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import 阅读全文
posted @ 2021-09-05 13:34 阿向向 阅读(53) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 28 下一页