MySQL 基础语句 多个知识点 ------------------------------------------------------------------------------------------------------------------------------------------------------------ 排序:order by desc-降序 asc-升序(默认) select * from student order by stuno desc…
1.基础定义 变量类型在变量名后 var a int var s string 2.定义并赋值 var a,b int = 1,2 var s string="abc" 3.类型推导 不用定义变量类型 var a,b,c,s = 1,2,true,"deduction" 4.简写(只能在函数内) 用":="代替"var" a,b,c,s := 1,2,true,"deduction" 5.定义多个变量并赋值…
Java基础-成员变量与局部变量 1.什么是成员变量与局部变量? public class Student { String name; int high; public void study(){ int j=0; System.out.println("学习"); } public void play(){ System.out.println("打游戏"); int j=0; }} 例如在…