This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compile - Dependencies for source set 'main' (deprecated, use 'implementation ' instead). | |
+--- org.springframework.boot:spring-boot-starter-web:1.4.7.RELEASE | |
| +--- org.springframework.boot:spring-boot-starter:1.4.7.RELEASE | |
| | +--- org.springframework.boot:spring-boot:1.4.7.RELEASE | |
| | | +--- org.springframework:spring-core:4.3.9.RELEASE | |
| | | | \--- commons-logging:commons-logging:1.2 | |
| | | \--- org.springframework:spring-context:4.3.9.RELEASE | |
| | | +--- org.springframework:spring-aop:4.3.9.RELEASE | |
| | | | +--- org.springframework:spring-beans:4.3.9.RELEASE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package zl.ca.test; | |
public class Fighter extends Person { | |
private int power; | |
public Fighter(String name, int age) { | |
super(name, age); | |
} | |
public int getPower() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Nested Table</title> | |
<style> | |
table { | |
border-collapse: collapse; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE OrderItem( | |
lineItemId int IDENTITY(1,1) NOT NULL, | |
orderid int NOT NULL, | |
itemName nchar(10) NOT NULL, | |
qty int NOT NULL | |
) | |
GO | |
INSERT INTO OrderItem (orderid,itemName,qty) | |
VALUES (100, 'ipad', 4), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create procedure dbo.fixDuplication(@accountNumber varchar(255), @productId varchar(30)) | |
as | |
begin | |
WITH CTE as | |
( | |
select oli.id, oli.serialNumber, row_number() | |
over (partoliion by serialNumber order by serialNumber) as rownumber | |
from orderLineItems as oli | |
join orders as o on o.id=oli.orderId | |
where o.accountnumber = @accountnumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script> | |
function secretChanged(element){ | |
var currentRow = $(element).parents().parents("tr:first"); | |
$("#notes").slideUp(500); | |
$("#notes").insertAfter(currentRow); | |
$("#notes").slideDown(500); |