Lev1

导航

2019年8月23日 #

mysql语句大全

摘要: 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 'te 阅读全文

posted @ 2019-08-23 10:38 Lev1 阅读(154) 评论(0) 推荐(0) 编辑

利用mvn juint 连接数据库进行操作(修改)

摘要: package com.jdbc02; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import ja 阅读全文

posted @ 2019-08-23 09:43 Lev1 阅读(137) 评论(0) 推荐(0) 编辑

2019年8月18日 #

mysql练习

摘要: CREATE TABLE student( Id INT(10) NOT null PRIMARY KEY AUTO_INCREMENT COMMENT '学号', `name` VARCHAR(20) NOT NULL COMMENT '姓名', SEX VARCHAR(4) COMMENT '学性别', Birth YEAR COMMENT '出生年月', ... 阅读全文

posted @ 2019-08-18 20:16 Lev1 阅读(136) 评论(0) 推荐(0) 编辑

2019年8月11日 #

测试

摘要: package cn.test; import java.util.Scanner; public class Test01 { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { 阅读全文

posted @ 2019-08-11 23:06 Lev1 阅读(150) 评论(0) 推荐(0) 编辑

正则表达式

摘要: 见大佬 https://www.cnblogs.com/zeng1997/p/11269554.html 阅读全文

posted @ 2019-08-11 21:59 Lev1 阅读(118) 评论(0) 推荐(0) 编辑

2019年8月6日 #

模拟爬山

摘要: package cn.climb; public class ClimbThread implements Runnable{ private int num; private int time; public ClimbThread(int num, int time) { super(); this.num = nu... 阅读全文

posted @ 2019-08-06 20:36 Lev1 阅读(208) 评论(0) 推荐(0) 编辑

2019年8月5日 #

继承Thread类的方式创建多线程

摘要: package MoreThread; public class MoreThread implements Runnable{ @Override public void run() { for(int i = 0;i < 20;i++ ) { System.out.println(); ... 阅读全文

posted @ 2019-08-05 22:52 Lev1 阅读(469) 评论(0) 推荐(0) 编辑

模拟看病

摘要: package cn.DoctorVip; public class VipThread implements Runnable{ @Override public void run() { for(int i = 0;i < 10;i++) { Thread.currentThread().set 阅读全文

posted @ 2019-08-05 22:03 Lev1 阅读(183) 评论(0) 推荐(0) 编辑

线程练习-网络买票

摘要: package cn.BuyTickets; //线程类 public class BuyTickets implements Runnable{ private int num; private int count=10; @Override public void run() { while(t 阅读全文

posted @ 2019-08-05 21:59 Lev1 阅读(91) 评论(0) 推荐(0) 编辑

2019年8月4日 #

永久储存信息(已完善)

摘要: package cn.vip; import java.io.Serializable; public class Users implements Serializable{ private String name; private int age; private String gender; 阅读全文

posted @ 2019-08-04 20:48 Lev1 阅读(209) 评论(0) 推荐(0) 编辑