摘要:
test字段为ntext类型SQL语句:select * from A where test=’xxx’执行之后会出现:数据类型 ntext 和 varchar 在 equal to 运算符中不兼容的错误信息。是不是值也是ntext类型就行了呢?那把SQL语句该成:select * from A w 阅读全文
摘要:
public class Demo5 { public static void main(String[] args) { int a=10; int b=20; a+=b; System.out.println("a+"+a); //当前面为String类型时,自动转为Sting System.o 阅读全文
摘要:
修改Mysql数据库默认密码后登陆报 ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 注意:当修改Mysql数据库的默认端口号后,在连接数据库的时候,需要加上端口号 mysql -uroot -pjfy 阅读全文
摘要:
public class Demo3 { //静态常量,属于类,值是固定的不可变的 final static double d=123.23; //静态变量,属于类 static int i=1000000; //成员变量,属于实例 String string,string1; String str 阅读全文