在my.ini的段[mysqld]中增加skip-grant-tables(只增加它即可)2.重启mysql服务3.打开cmd,转向mysql的安装路径C:\ProgramFiles\MySQL\MySQLServer5.1\bin4.输入mysql-uroot-p5.密码输入空,这时会自动转向sql输入方式6.输入usemysql7.输入updateusersetpassword=password(‘新..
分类:
数据库 时间:
2014-06-10 23:21:56
阅读次数:
342
查询要素:查哪张表的数据?查哪些列?select*fromclass-----表示查询所有行和列的数据*代表所有列,表名后不加where条件,则选所有行,因此取所有行和列例:实验一:取部分列,所有行,取所有人的姓名和工资mysql>selectsname,salaryfromclass;查id>10的人的所有列mysql..
分类:
数据库 时间:
2014-06-10 23:16:54
阅读次数:
271
原题地址:https://oj.leetcode.com/problems/container-with-most-water/题意:Givennnon-negative
integersa1,a2, ...,an, where each represents a point at coordina...
分类:
编程语言 时间:
2014-06-10 20:05:44
阅读次数:
213
The gray code is a binary numeral system where
two successive values differ in only one bit.Given a non-negative
integernrepresenting the total number...
分类:
其他好文 时间:
2014-06-10 19:38:39
阅读次数:
199
本笔记继续使用dept部门表,emp员工表,一对多多对一双向映射。1 条件查询1.1 查询
员工表emp中 年龄eage小于30,月薪esal大于20000的员工姓名enamesql:select ename from emp where
eage?;hql: select ename from E...
分类:
系统相关 时间:
2014-06-10 16:55:49
阅读次数:
471
题目
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram w...
分类:
其他好文 时间:
2014-06-10 15:34:02
阅读次数:
252
1.知识点:可以对照下面的录屏进行阅读
SQL> --子查询所要解决的问题:问题不能一步求解
SQL> --查询工资比SCOTT高的员工信息
SQL> --(1)使用普通方法
SQL> --1. SCOTT的工资
SQL> select sal from emp where ename='SCOTT';
SQL> --2. 查询比3000高的员工
SQL> select *
2 fro...
分类:
数据库 时间:
2014-06-10 13:50:32
阅读次数:
239
1.知识点:可以对照下面的录屏进行阅读
SQL> --等值连接
SQL> --查询员工信息: 员工号 姓名 月薪 部门名称
SQL> select empno,ename,sal,dname
2 from emp,dept
3 where emp.deptno=dept.deptno;
SQL> --不等值连接
SQL> --查询员工信息: 姓名 月薪 工资级别
SQL> ...
分类:
数据库 时间:
2014-06-10 13:32:59
阅读次数:
262
Two players, S and T, are playing a game where they make alternate moves. S plays
first.
In this game, they start with an integer N. In each move, a player removes one digit from the integer and p...
分类:
其他好文 时间:
2014-06-10 06:31:29
阅读次数:
302
问题描述:
The Fibonacci sequence is defined by the recurrence relation:
Fn = Fn1 + Fn2,
where F1 = 1 and F2 = 1.
Hence the first 12 terms will be:
F1 = 1
F2 = 1
F3 = 2
F4 = 3
F5 = 5
F6 = 8
...
分类:
其他好文 时间:
2014-06-10 06:10:06
阅读次数:
307