11 2022 档案

摘要:代码一 package com.itheima.api; import java.util.Scanner; public class Demo1Scanner{ /* next() :遇到了空格,就不再录入数据了 结束标记 空格 ,tab键 nextline():可以将数据完整接收过来 结束标记: 阅读全文
posted @ 2022-11-28 16:51 NiceTwocu 阅读(30) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2023.cnblogs.com/blog/2426413/202211/2426413-20221127185652942-304012748.png) 阅读全文
posted @ 2022-11-27 18:57 NiceTwocu 阅读(8) 评论(0) 推荐(0) 编辑
摘要:DROP TABLE IF EXISTS account; -- 创建账户表 CREATE TABLE account( id int PRIMARY KEY auto_increment, name varchar(10), money double(10,2) ); -- 添加数据 INSERT 阅读全文
posted @ 2022-11-27 18:39 NiceTwocu 阅读(15) 评论(0) 推荐(0) 编辑
摘要:-- 1.查询所有员工信息。查询员工编号,员工姓名,工资,职务名称,职务描述 /* 分析: 1.员工编号,员工姓名,工资 信息在emp表 2.职务名称,职务描述 信息在job表 3.job职务表和emp员工表是一对多的关系 emp.job_id=job.id / -- 隐式内连接 SELECT t1 阅读全文
posted @ 2022-11-27 14:01 NiceTwocu 阅读(230) 评论(0) 推荐(0) 编辑
摘要:SELECT * FROM emp; SELECT * FROM dept;-- 多表查询 SELECT * FROM emp, dept;-- 笛卡尔积 有A和B两个集合 取AB所有的组合情况 -- 消除无效数据 -- 查询emp和dept的数据,emp.dep_id=dept.did -- 隐式 阅读全文
posted @ 2022-11-26 23:13 NiceTwocu 阅读(26) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_10; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-26 17:28 NiceTwocu 阅读(32) 评论(0) 推荐(0) 编辑
摘要:package com.itheima_09; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } package com.itheima_09; imp 阅读全文
posted @ 2022-11-26 17:13 NiceTwocu 阅读(17) 评论(0) 推荐(0) 编辑
摘要:package com.itheima_08; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } package com.itheima_08; imp 阅读全文
posted @ 2022-11-26 16:46 NiceTwocu 阅读(21) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_07; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-26 00:09 NiceTwocu 阅读(21) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221125220905023-777550804.png) ![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221125221616553-807369184.png) ![im 阅读全文
posted @ 2022-11-25 22:36 NiceTwocu 阅读(22) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_06; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-24 22:58 NiceTwocu 阅读(36) 评论(0) 推荐(0) 编辑
摘要:drop table if exists emp; CREATE table emp( id INT PRIMARY KEY auto_increment , -- 员工id,自增长 ename VARCHAR(50) NOT NULL UNIQUE, -- 员工姓名,非空且唯一 joindate 阅读全文
posted @ 2022-11-22 22:53 NiceTwocu 阅读(19) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_05; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-22 22:09 NiceTwocu 阅读(40) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_02; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-22 21:50 NiceTwocu 阅读(167) 评论(0) 推荐(0) 编辑
摘要:代码一 package com.itheima_02; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码二 package com.itheima 阅读全文
posted @ 2022-11-22 21:37 NiceTwocu 阅读(56) 评论(0) 推荐(0) 编辑
摘要:代码1 package com.itheima_02; public class App{ public static void main(String[] args) { PictureFrame pf=new PictureFrame(); } } 代码2 package com.itheima 阅读全文
posted @ 2022-11-21 22:59 NiceTwocu 阅读(43) 评论(0) 推荐(0) 编辑
摘要:--从0开始查询,查询3条数据; SELECT * from stu LIMIT 0,3; --每页显示3条数据,查询第1页的数据; SELECT * from stu LIMIT 0,3; --每页显示3条数据,查询第2页的数据; SELECT * from stu LIMIT 3,3; --每页 阅读全文
posted @ 2022-11-14 22:46 NiceTwocu 阅读(39) 评论(0) 推荐(0) 编辑
摘要:package com.itheima04; import javax.swing.*; public class UserLoginFrame extends JFrame { public UserLoginFrame() { //窗体初始化 initframe(); //绘制窗体 paintV 阅读全文
posted @ 2022-11-14 22:33 NiceTwocu 阅读(15) 评论(0) 推荐(0) 编辑
摘要:package com.itheima03; /* 手机javabean alt+insert(fn)根据自己的选择生成想要的内容 */ public class Phone { private String brand; private int price; public Phone() { } 阅读全文
posted @ 2022-11-13 16:51 NiceTwocu 阅读(61) 评论(0) 推荐(0) 编辑
摘要:package com.itheima03; public class Student { private String name; private int age; public Student(){}; public void setName(String name) { this.name = 阅读全文
posted @ 2022-11-13 16:38 NiceTwocu 阅读(22) 评论(0) 推荐(0) 编辑
摘要:package com.itheima02; public class Student { private String name; private int age; //构造方法 // public Student(){ // System.out.println("无参构造方法"); // } 阅读全文
posted @ 2022-11-13 16:30 NiceTwocu 阅读(18) 评论(0) 推荐(0) 编辑
摘要:package com.itheima02; public class Student { private String name; private int age; //构造方法 public Student(){ System.out.println("无参构造方法"); } public vo 阅读全文
posted @ 2022-11-13 16:17 NiceTwocu 阅读(12) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221113160646433-1616498360.png) ![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221113160655235-104567080.png) 阅读全文
posted @ 2022-11-13 16:08 NiceTwocu 阅读(4) 评论(0) 推荐(0) 编辑
摘要:--统计班级一共有多少个学生 select * from stu; SELECT count(id) from stu ; --count统计的列名不能为空 --查询数学成绩的最高分 SELECT max(math) from stu ; --查询数学成绩的最低分 SELECT min(math) 阅读全文
posted @ 2022-11-13 15:36 NiceTwocu 阅读(35) 评论(0) 推荐(0) 编辑
摘要:--查询学生信息,按照年龄升序排列; SELECT * from stu ORDER BY age ; --查询学生信息,按照数学成绩降序排列; SELECT * from stu ORDER BY math desc; --查询学生信息,按照数学成绩降序排列,如果数学成绩一样,再按照英语成绩升序排 阅读全文
posted @ 2022-11-13 15:24 NiceTwocu 阅读(15) 评论(0) 推荐(0) 编辑
摘要:--基础查询 --查询 NAME 和 age两列 SELECT NAME , age FROM stu; --查询所有列的数据 SELECT * FROM stu; --查询地址信息 SELECT address from stu; --使用DISTINCT去除重复记录 SELECT DISTINC 阅读全文
posted @ 2022-11-10 00:21 NiceTwocu 阅读(25) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; /* 学生类 */ public class student02 { //成员变量 private String name; private int age; public void setAge(int age) { this.age=age; // if 阅读全文
posted @ 2022-11-09 23:17 NiceTwocu 阅读(12) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; /* 学生类 */ public class student01 { //成员变量 private String name;//给name设置private private int age; public void setAge(int a) {//设置se 阅读全文
posted @ 2022-11-09 23:06 NiceTwocu 阅读(14) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221109205108375-2028610736.png) 阅读全文
posted @ 2022-11-09 20:51 NiceTwocu 阅读(5) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221108222835850-1682314208.png) ![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221108222844852-1623633510.png) ![ 阅读全文
posted @ 2022-11-08 22:36 NiceTwocu 阅读(11) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; /* 学生测试类 */ public class StudentDemo { public static void main(String[] args) { // 创建对象 student s = new student(); //给成员变量复制 s.na 阅读全文
posted @ 2022-11-08 22:26 NiceTwocu 阅读(107) 评论(0) 推荐(0) 编辑
摘要:#框架中的find_element import time from webdriver_helper import webdriver, get_webdriver from selenium.webdriver import chrome from selenium.webdriver.comm 阅读全文
posted @ 2022-11-08 22:11 NiceTwocu 阅读(39) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class phonedemo01 { public static void main(String[] args) { //格式 phone p = new phone(); //使用成员变量 System.out.println(p.bra 阅读全文
posted @ 2022-11-07 22:05 NiceTwocu 阅读(17) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class phone { //成员变量 String brang; int price; public void call(){ System.out.println("打电话"); } public void message(){ Syst 阅读全文
posted @ 2022-11-07 21:56 NiceTwocu 阅读(10) 评论(0) 推荐(0) 编辑
摘要:定义类就是用JAVA语言描述对象的属性和行为 阅读全文
posted @ 2022-11-07 21:49 NiceTwocu 阅读(12) 评论(0) 推荐(0) 编辑
摘要:写插入语句 --给指定列添加数据 INSERT INTO stu(id,username)values(1,"张三")Mysql中关于 错误 1366 - Incorrect string value: #### '\xE5\xBC\xA0\xE4\xB8\x89' for column 'name 阅读全文
posted @ 2022-11-07 21:45 NiceTwocu 阅读(39) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.ParseException; i 阅读全文
posted @ 2022-11-06 16:49 NiceTwocu 阅读(135) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import javax.swing.*; import java.text.SimpleDateFormat; import java.util.Date; public class ShowDateTime02 { public static void 阅读全文
posted @ 2022-11-06 16:33 NiceTwocu 阅读(32) 评论(0) 推荐(0) 编辑
摘要:![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221106161153543-1016123642.png) ![image](https://img2022.cnblogs.com/blog/2426413/202211/2426413-20221106161309692-953285729.png) 阅读全文
posted @ 2022-11-06 16:24 NiceTwocu 阅读(9) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import java.util.Date; public class DateDeom01 { public static void main(String[] args) { //Date() Date d1=new Date(); System.out 阅读全文
posted @ 2022-11-06 16:05 NiceTwocu 阅读(13) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class integerDemo03 { public static void main(String[] args) { //装箱:把基本数据类型转化为对应的包装类类型; // Integer i = Integer.valueOf(100 阅读全文
posted @ 2022-11-06 15:53 NiceTwocu 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#查询表 show tables; 查看表结构 decs 表名; #创建表 注意创建表列名要加反引号 create table 表名( 列名1 数据类型, 列名1 数据类型, .............. ); #删除表 #修改表 阅读全文
posted @ 2022-11-06 15:12 NiceTwocu 阅读(29) 评论(0) 推荐(0) 编辑
摘要:import time from webdriver_helper import webdriver, get_webdriver from selenium.webdriver import chrome from selenium.webdriver.common.by import By # 阅读全文
posted @ 2022-11-02 23:30 NiceTwocu 阅读(19) 评论(0) 推荐(0) 编辑
摘要:import time from webdriver_helper import webdriver, get_webdriver from selenium.webdriver import chrome from selenium.webdriver.common.by import By dr 阅读全文
posted @ 2022-11-02 23:09 NiceTwocu 阅读(44) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Random; public cl 阅读全文
posted @ 2022-11-02 22:54 NiceTwocu 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#这里创建库需要注意给库设置默认编码和排序规则 create database db2 default CHARACTER set utf8 collate utf8_general_ci; #创建后如果忘记设置编码和排序规则 可以通过以下语句修改 alter DATABASE db1 defaul 阅读全文
posted @ 2022-11-02 22:31 NiceTwocu 阅读(27) 评论(0) 推荐(0) 编辑
摘要:###1、下载地址 https://downloads.mysql.com/archives/community/ ###2、解压 ###3、下图目录下 创建一个my.ini文件 写入下方内容 [mysql] default-character-set=utf8 [mysqld] character 阅读全文
posted @ 2022-11-02 22:05 NiceTwocu 阅读(21) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class intger_02 { public static void main(String[] args) { //int和string的相互转换 int number=100; //方式一 String s1=number+""; Sy 阅读全文
posted @ 2022-11-01 21:43 NiceTwocu 阅读(37) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; public class intger_01 { public static void main(String[] args) { Integer i1=new Integer(100);//根据int做创建Integer对象(过时) Integer i2= 阅读全文
posted @ 2022-11-01 21:29 NiceTwocu 阅读(27) 评论(0) 推荐(0) 编辑
摘要:package com.itheima; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.nio.charset.StandardCh 阅读全文
posted @ 2022-11-01 20:10 NiceTwocu 阅读(35) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示