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
using System.Data; | |
using System.Data.OleDb; | |
using System.Diagnostics; | |
namespace JW4.DB.Util | |
{ | |
public static class Excel | |
{ | |
public static DataTable GetFirstWorksheetAsTable(string filename) | |
{ |
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
DROP TABLE tempA; CREATE TABLE tempA ( style_cd CHAR(3), id_cd VARCHAR(15) ); | |
DROP TABLE tempB; CREATE TABLE tempB ( item_desc VARCHAR(50), item_num CHAR(4), style_cd CHAR(3), id_cd VARCHAR(15) ); | |
INSERT INTO tempA | |
SELECT 'A', 123456 | |
UNION SELECT 'A', 654321 | |
UNION SELECT 'B', 321456 | |
UNION SELECT 'A', 654123 | |
UNION SELECT 'C', 424242; |
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
#!/bin/bash | |
read -r -d '' AWK <<EOF | |
{ | |
date=\$1; | |
refname=\$2; | |
subject=substr(\$3,1,72); | |
sha=\$4; | |
len=split(refname, ref, "/"); |
NewerOlder