早晨和陈John一起来实验室的路上听他说起leetcode上也有数据库和shell的练习。于是拿来练练手,发现数据库的题只有几道而且做得也很快AC率也蛮高,权当复习了一下数据库的基本语法了吧。1:Employees Earning More Than Their ManagersTheEmploye...
分类:
数据库 时间:
2015-06-09 11:15:24
阅读次数:
194
组装sql字符串,丢给exec sp_executesql执行exec sp_executesql N'exec sp_executesql N''select * from TESTTEST.dbo.Employees where Title=@title'', N''@title varchar...
分类:
数据库 时间:
2015-06-06 11:57:18
阅读次数:
151
Ext.onReady(function(){ varstore=Ext.create(‘Ext.data.Store‘,{ fields:[‘name‘,‘seniority‘,‘department‘], groupField:‘department‘, data:{‘employees‘:[{"name":"Michael","seniority":7,"department":"Sales"}]}, proxy:{ type:‘memory‘, reader:{ type:‘js..
分类:
Web程序 时间:
2015-06-04 17:37:12
阅读次数:
162
using (DataContext ctx = new DataContext()) { /*foreach (var item in ctx.employees) { Vie...
分类:
Web程序 时间:
2015-06-01 12:52:40
阅读次数:
128
Problem Description
On Mars, there is a huge company called ACM (A huge Company on Mars), and it’s owned by a younger boss.Due to no moons around Mars, the employees can only get the salaries per-year...
分类:
其他好文 时间:
2015-05-28 21:39:39
阅读次数:
174
今天按照书上试了试json的解析这里使用了两种方法来对json数据进行解析1.利用JSONObject来解析 2.利用谷歌的开源库GSON来进行解析一、利用JSONObject来进行解析在服务器下建立json文件get_data.json如下:{"employees": [{ "firstName"...
分类:
移动开发 时间:
2015-05-24 23:18:30
阅读次数:
290
The Employee table holds all employees including their managers. Every employee has an Id,
and there is also a column for the manager Id.
+----+-------+--------+-----------+
| Id | Name | Salary |...
分类:
数据库 时间:
2015-05-24 08:54:04
阅读次数:
201
# Write your MySQL query statement belowSELECT a.Name FROM Employee AS aINNER JOIN Employee AS b ON a.ManagerId = b.IdWHERE a.Salary > b.Salary让我来看看讨论...
分类:
数据库 时间:
2015-05-22 01:53:44
阅读次数:
164
1.字符串转换为JavaScript对象 var txt = '{ "employees" : [' +
'{ "firstName":"John" , "lastName":"Doe" },' +
'{ "firstName":"Anna" , "lastName":"Smith" },' +
'...
分类:
编程语言 时间:
2015-05-21 21:42:15
阅读次数:
151
https://leetcode.com/problems/employees-earning-more-than-their-managers/Employees Earning More Than Their ManagersTheEmployeetable holds all employee...
分类:
数据库 时间:
2015-05-16 18:05:16
阅读次数:
220