The query processor could not produce a query…
Microsoft OLE DB Provider for SQL Server error ‘80040e14’ The query processor could not produce a query plan from the optimizer because a query cannot […]
Microsoft OLE DB Provider for SQL Server error ‘80040e14’ The query processor could not produce a query plan from the optimizer because a query cannot […]
var_dump — Dumps information about a variable via PHP: var_dump – Manual. var_dump — Dumps information about a variable array(3) { [0]=> int(1) [1]=> int(2) […]
육영수여사 피격사건의 진실(한글자막.wmv – YouTube.
일본과 친일파들이 숨기고 있는 대한제국의 진실 – YouTube.
using System; using System.Collections.Generic; using System.Linq; using System.Text; public class MainClass { public static void Main() { List<Product> products = GetProductList(); var soldOutProducts = from p in products where p.UnitsInStock == 0 select p; Console.WriteLine(“Sold out products:”); foreach (var product in soldOutProducts) { Console.WriteLine(“{0} is sold out!”, product.ProductName); } } static List<Product> GetProductList() { List<Product> empTree = new List<Product>(); empTree.Add(new Product { ProductName = “A”, Category = “O”, UnitPrice = 12, UnitsInStock = 5, Total = 36, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); empTree.Add(new Product { ProductName = “B”, Category = “O”, UnitPrice = 2, UnitsInStock = 4, Total = 35, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); empTree.Add(new Product { ProductName = “C”, Category = “O”, UnitPrice = 112, UnitsInStock = 3, Total = 34, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); empTree.Add(new Product { ProductName = “D”, Category = “O”, UnitPrice = 112, UnitsInStock = 0, Total = 33, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); empTree.Add(new Product { ProductName = “E”, Category = “O”, UnitPrice = 1112, UnitsInStock = 2, Total = 32, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); empTree.Add(new Product { ProductName = “F”, Category = “O”, UnitPrice = 11112, UnitsInStock = 0, Total = 31, OrderDate = new DateTime(2005, 1, 1), Id = 1 }); return empTree; […]
분산 파일 시스템 하둡 (http://hadoop.apache.org/) 설치를 해보자. CentOS 기준. 현재 안정버전은 1.0.3이고, 2.0.0이 알파버전으로 나온 상태 설치에는 Single Node Setup 와 Cluster Setup 이 있다 […]
http://sourceforge.net/projects/android-x86/files/latest/download
Model-View-Controller (MVC) Structure Previous – Presentation-Model Here the same calculator is organized according the the Model-View-Controller (MVC)pattern. The idea is to separate the user interface […]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> <title>Insert title here</title> </head> <body> <table width="550" border="1"> <%@ page import = "java.sql.*" %> <% Connection conn = null; //String sql = null; PreparedStatement pstmt = null; ResultSet rs = null; try { String url1 = "jdbc:sqlserver://localhost:1433;databaseName=IBE_Basic_Code;user=user01;password=password01;"; conn = DriverManager.getConnection(url1); String sql = "select top 100 * from IBE_AIRLINE"; pstmt = conn.prepareStatement(sql); rs = pstmt.executeQuery(); while(rs.next()) { String id = rs.getString("country_code"); String passwd = rs.getString("airline_english"); String name = rs.getString("airline_japan"); String time = rs.getString("airline_korean"); %> <tr> <td width="100"> <%=id%> </td> <td width="100"> <%=passwd%> </td> <td width="100"> <%=name%> </td> <td width="250"> <%=time%> </td> </tr> <% } } catch(Exception e) { e.printStackTrace(); } finally { if(rs != null) try{rs.close();}catch(SQLException sqle){} if(pstmt != null) try{pstmt.close();}catch(SQLException sqle){} if(conn != null) try{conn.close();}catch(SQLException sqle){} } %> </table> </body> </html> |
Copyright © 2024 | WordPress Theme by MH Themes