码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
重置mysql的root密码
在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
mysql查select基本入门
查询要素:查哪张表的数据?查哪些列?select*fromclass-----表示查询所有行和列的数据*代表所有列,表名后不加where条件,则选所有行,因此取所有行和列例:实验一:取部分列,所有行,取所有人的姓名和工资mysql>selectsname,salaryfromclass;查id>10的人的所有列mysql..
分类:数据库   时间:2014-06-10 23:16:54    阅读次数:271
[leetcode]Container With Most Water @ Python
原题地址: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
【leetcode】Gray Code
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
Hibernate 笔记 HQL查询 条件查询,聚集函数,子查询,导航查询
本笔记继续使用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
Largest Rectangle in Histogram
题目 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
Oracle学习(六):子查询
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
Oracle学习(五):多表查询
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
Uva 11489 - Integer Game
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
projecteuler---->problem=25----1000-digit Fibonacci number
问题描述: 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!