반응형
반응형

▶ 데이터 타입

SQL Server PostgreSQL
BIGINT 64-bit integer BIGINT
BINARY(n) Fixed-length byte string BYTEA
BIT 1, 0 or NULL BOOLEAN
CHAR(n), CHARACTER(n) Fixed-length character string, 1 ⇐ n ⇐ 8000 CHAR(n), CHARACTER(n)
DATE Date (year, month and day) DATE
DATETIME Date and time with fraction TIMESTAMP(3)
DATETIME2(p) Date and time with fraction TIMESTAMP(p)
DATETIMEOFFSET(p) Date and time with fraction and time zone TIMESTAMP(p) WITH TIME ZONE
DECIMAL(p,s), DEC(p,s) Fixed-point number DECIMAL(p,s), DEC(p,s)
DOUBLE PRECISION Double-precision floating-point number DOUBLE PRECISION
FLOAT(p) Floating-point number DOUBLE PRECISION
IMAGE Variable-length binary data, ⇐ 2G BYTEA
INT, INTEGER 32-bit integer INT, INTEGER
MONEY 64-bit currency amount MONEY
NCHAR(n) Fixed-length Unicode UCS-2 string CHAR(n)
NTEXT Variable-length Unicode UCS-2 data, ⇐ 2G TEXT
NUMERIC(p,s) Fixed-point number NUMERIC(p,s)
NVARCHAR(n) Variable-length Unicode UCS-2 string VARCHAR(n)
NVARCHAR(max) Variable-length Unicode UCS-2 data, ⇐ 2G TEXT
REAL Single-precision floating-point number REAL
ROWVERSION Automatically updated binary data BYTEA
SMALLDATETIME Date and time TIMESTAMP(0)
SMALLINT 16-bit integer SMALLINT
SMALLMONEY 32-bit currency amount MONEY
TEXT Variable-length character data, ⇐ 2G TEXT
TIME(p) Time (hour, minute, second and fraction) TIME(p)
TIMESTAMP Automatically updated binary data BYTEA
TINYINT 8-bit unsigned integer, 0 to 255 SMALLINT
UNIQUEIDENTIFIER 16-byte GUID (UUID) data CHAR(16)
VARBINARY(n) Variable-length byte string, 1 ⇐ n ⇐ 8000 BYTEA
VARBINARY(max) Variable-length binary data, ⇐ 2G BYTEA
VARCHAR(n) Variable-length character string, 1 ⇐ n ⇐ 8000 VARCHAR(n)
VARCHAR(max) Variable-length character data, ⇐ 2G TEXT
XML XML data XML

▶ 함수

SQL Server PostgreSQL
DATEADD Add an interval to datetime INTERVAL expression
ISNULL(exp, replacement) Replace NULL with the specified value COALESCE(exp, replacement)



출처: https://icodebroker.tistory.com/6429 [ICODEBROKER]

 

반응형
반응형

자동 증가 형식 (serial 등)

 

PosgtreSQL에서 사용할 수 있는 데이터 형에서 자동 증가 타입의 사용법에 대해 설명하겠다. 자동 증가 타입으로 설정한 컬럼은 자동으로 연속 값이 저장된다. 자동 증가 타입은 smallserial, serial, bigserial의 3 가지 유형의 데이터가 존재한다.

자동 증가 형식

연번 형은 취급 숫자의 범위가 다른 3 가지 데이터 유형이 있다.

형식크기범위별칭

smallserial 2 바이트 1~32767 serial2
serial 4 바이트 1~2147483647 serial4
bigserial 8 바이트 1~9223372036854775807 serial8

자동 증가 타입이 설정된 컬럼이 포함된 테이블에 데이터를 추가를 하면, 자동 증가 타입의 컬럼에 직접 값을 지정하는 것이 아니라 기본값이 포함되도록 한다. 그러면 자동으로 지금까지 등록된 값보다 큰 값(일반적으로 1 큰 값)이 자동으로 저장된다. (MySQL에서 말하는 컬럼에 AUTO_INCREMENT를 설정 한 것과 비슷하다)

※ 자동 증가 형식은 내부적으로 시퀀스를 이용하여 구현되어 있다.


자동 증가 타입이 설정된 컬럼에 값을 지정하여 데이터를 추가

자동 증가 타입이 설정된 컬럼에 따로 지정하지 않으면 디폴트 값으로 자동으로 연속적인 값이 저장되지만, 임의의 값을 지정하여 데이터를 추가 할 수도 있다.

현재 4개의 데이터를 추가한 상태에 다음 데이터를 추가하게 되면, 자동 증가 타입이 설정된 id 컬럼에 다음 디폴트 값인 5가 저장된다.

여기서 id 컬럼에 값을 지정하여 데이터를 추가 할 수 있다.

 

mydb=# insert into myfriends values (7, 'Yunjo', 'Paris');
INSERT 0 1
mydb=# select * from myfriends;
 id |  name   | address
----+---------+---------
  1 | Yunho   | Goyang
  2 | Seonah  | Bucheon
  3 | Yongtae | Seoul
  4 | Dongeog | Gangnam
  7 | Younjo  | Paris
(5개 행)

-- 데이터를 추가한 후 테이블에서 데이터를 검색해 보면 지정한 값이 그대로 저장되어 있다. 
   이와 같이 자동 증가 타입이 설정된 컬럼에도 값을 지정하여 데이터를 추가 할 수 있다.
-- 여기에서 다시 id 컬럼에 지정하지 않고 디폴트값으로 데이터를 추가하면, 
   id 컬럼에 무슨 값이 들어가는지 확인하려고 한다.

mydb=# insert into myfriends (name, address) values ('Sueun', 'Yongin');
INSERT 0 1
mydb=# select * from myfriends;
 id |  name   | address
----+---------+---------
  1 | Yunho   | Goyang
  2 | Seonah  | Bucheon
  3 | Yongtae | Seoul
  4 | Dongeog | Gangnam
  7 | Younjo  | Paris
  5 | Sueun   | Yongin
(6개 행)

-- 데이터를 추가한 후에 테이블에서 데이터를 검색해 보면, 
   id 컬럼은 원래 다음으로 들어가려던 5가 저장된다.
-- 그럼, id 컬럼에 디폴트 값이 포함되도록 2개의 데이터를 더 추가해 보자.

mydb=# insert into myfriends (name, address) values ('Hansol', 'Seocho'), ('Yujin', 'Unknown');
INSERT 0 2
mydb=# select * from myfriends;
 id |  name   | address
----+---------+---------
  1 | Yunho   | Goyang
  2 | Seonah  | Bucheon
  3 | Yongtae | Seoul
  4 | Dongeog | Gangnam
  7 | Younjo  | Paris
  5 | Sueun   | Yongin
  6 | Hansol  | Seocho
  7 | Yujin   | Unknown
(8개 행)

-- id 컬럼에는 이전 저장된 값 5 다음으로 6과 7이 저장되어 있다. 
   이미 id 컬럼에 7이라는 값이 저장된 데이터를 수동으로 추가되었지만, 
   중복된 값이 있는지와는 상관없이 연속적인 값이 저장이 되었다.
-- 이와 같이 자동 증가 타입이 설정된 컬럼에 값을 지정하여 데이터를 추가 할 수도 있지만, 
   그 데이터는 자동으로 저장되는 값으로 반영되지 않는다는 점을 주의가 필요하다.


.

 

* http://www.devkuma.com/books/pages/1444 

반응형
반응형

⦿ 일(一) 1

⦿ 십(十) 10

⦿ 백(百) 100

⦿ 천(千) 1000

⦿ 만(萬) 10000    십만,백만,천만

⦿ 억(億) 10의 8제곱 (1만의 1만배)  십억,백억,천억

⦿ 조(兆) 10의 12제곱 (1억의 1만배)  십조,백조,천조

⦿ 경(京) 10의 16제곱 (1조의 1만배)  십경,백경,천경

⦿ 해(垓) 10의 20제곱 (1경의 1만배)  십해,백해,천해

⦿ 자      10의 24제곱 (1해의 1만배)  십자,백자,천자

⦿ 양(穰) 10의 28제곱 (1자의 1만배)  십양,백양,천양

⦿ 구(溝) 10의 32제곱 (1양의 1만배)  십구,백구,천구

⦿ 간(澗) 10의 36제곱 (1구의 1만배)  십간,백간,천간

⦿ 정(正) 10의 40제곱 (1간의 1만배)  십정,백정,천정

⦿ 재(載) 10의 44제곱 (1정의 1만배)  십재,백재,천재

⦿ 극(極) 10의 48제곱 (1재의 1만배)  십극,백극,천극

⦿ 항하사(恒河沙) 10의 56제곱 (1극의 1억배)  십항하사,백항하사,천항하사,

                                  만항하사,십만항하사,백만항하사,천만항하사

⦿ 아승지(阿僧祇) 10의 64제곱 (1항하사의 1억배) 십아승지,백아승지,천아승지,

                                    만아승지,십만아승지,백만아승지,천만아승지

⦿ 나유타(那由他) 10의 72제곱 (1아승기의 1억배) 십나유타,백나유타,천나유타,

                                    만나유타,십만나유타,백만나유타,천만나유타

⦿ 불가사의(不可思議) 10의 80제곱 (1나유타의 1억배) 십불가사의,백불가사의,

     천불가사의, 만불가사의,십만불가사의,백만불가사의,천만불가사의

⦿ 무량대수(無量大壽) 10의 88제곱 (1불가사의의1억배) 십무량대수,백무량대수,

          천무량대수,만무량대수,십만무량대수,백만무량대수,천만무량대수

      그러다가 세고 또  세고 하여 늙고 지쳐서 더 이상 못 세고, 셀 수 없다면

⦿ 무한대(無限大) 셀 수없는 많은수

반응형
반응형

Pizza As A Service 2.0 By Paul Kerrison

https://www.ami.com/tech-blog/pizza-as-a-service-20-by-paul-kerrison/

 

Pizza as a Service 2.0 by Paul Kerrison

Pizza as a Service 2.0 by Paul Kerrison Recently I was trying to describe the various types of cloud services available for modern IT deployment. Like

www.ami.com

Now for the justifications…

  • On-Premises – like a homemade pizza, made from scratch, you do everything yourself (no change so far). Example: Datacentre
  • Infrastructure as a Service – You share a kitchen with others. The utilities and oven are provided, but you make and cook the pizza yourself. Example: EC2
  • Containers as a Service – You bring the pizzas but someone else uses their facilities and cooks the pizza for you. Example: ECS
  • Platform as a Service – You order a pizza for collection, the pizzeria make and cook the pizza using their facilities. Example: App Engine
  • Function as a Service – You go to a pizzeria with some friends. You order and then eat pizza made by the restuarant. You order drinks from the bar and they’re made for you. Example: AWS Lambda
  • Software as a Service – You go to someone’s house for a party, they provide the pizza and invite others round for you to meet. Conversation with the guests is still your responsibility! Example: Gmail

For the more technically minded, I’ve added the levels of abstraction at the side so you can see what I was thinking from an actual implementation point of view. The one that’s probably slightly contentious is the scaling level. I was trying to use this to highlight the difference between PaaS and Faas ie with PaaS you still have to worry about how to manage scaling Eg how many dynos (Heroku) do you want to run.

반응형
반응형

KB4023057 - RDP Wrapper 10.0.19041.1202 #1509

https://github.com/stascorp/rdpwrap/issues/1509

 

KB4023057 - RDP Wrapper 10.0.19041.1202 · Issue #1509 · stascorp/rdpwrap

2021-08 Update for Windows 10 Version 21H1 for x64-based Systems (KB4023057) 10.0.19041.1081 and 10.0.19041.1202 use the same settings. Append these to your rdpwrapper.ini file. [10.0.19041.1081] L...

github.com

2021-08 Update for Windows 10 Version 21H1 for x64-based Systems (KB4023057)

10.0.19041.1081 and 10.0.19041.1202 use the same settings. Append these to your rdpwrapper.ini file.

[10.0.19041.1081]
LocalOnlyPatch.x64=1
LocalOnlyOffset.x64=89D81
LocalOnlyCode.x64=jmpshort
SingleUserPatch.x64=1
SingleUserOffset.x64=0CB26
SingleUserCode.x64=Zero
DefPolicyPatch.x64=1
DefPolicyOffset.x64=19105
DefPolicyCode.x64=CDefPolicy_Query_eax_rcx
SLInitHook.x64=1
SLInitOffset.x64=1E98C
SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.1081-SLInit]
bInitialized.x64 =107108
bServerSku.x64 =10710C
lMaxUserSessions.x64 =107110
bAppServerAllowed.x64 =107118
bRemoteConnAllowed.x64=107120
bMultimonAllowed.x64 =107124
ulMaxDebugSessions.x64=107128
bFUSEnabled.x64 =10712C

[10.0.19041.1202]
LocalOnlyPatch.x64=1
LocalOnlyOffset.x64=89D81
LocalOnlyCode.x64=jmpshort
SingleUserPatch.x64=1
SingleUserOffset.x64=0CB26
SingleUserCode.x64=Zero
DefPolicyPatch.x64=1
DefPolicyOffset.x64=19105
DefPolicyCode.x64=CDefPolicy_Query_eax_rcx
SLInitHook.x64=1
SLInitOffset.x64=1E98C
SLInitFunc.x64=New_CSLQuery_Initialize

[10.0.19041.1202-SLInit]
bInitialized.x64 =107108
bServerSku.x64 =10710C
lMaxUserSessions.x64 =107110
bAppServerAllowed.x64 =107118
bRemoteConnAllowed.x64=107120
bMultimonAllowed.x64 =107124
ulMaxDebugSessions.x64=107128
bFUSEnabled.x64 =10712C
반응형
반응형

proactive & Reactive

 

  1. Reactive
    1. 조건반사적 반응 행동을 말한다.
    2. 외부 자극으로부터 조건반사적이고 즉각적인 반응 행동
    3. ACTION without STOP, THINK & CHOICE  https://blog.naver.com/candlite/221090540845
  2. Proactive
    1. 주도적이라는 뜻
    2. 내면의 욕구로부터의 단계적인 반응 행동
    3. ACTION after STOP, THONK & CHOICE
  3. STC : Stop, Think & Choice

Reactice 

 - 클라이언트가 먼저 찾아오고, 우리는 이에 대한 대응을 하면, 이건 Reactive

 

Proactive

 - 클라이언트는 가만히 있는데 우리가 먼저 딜을 위해 다가가면, 이건 Proactive

 

https://www.gnapartners.com/resources/articles/benefits-of-proactive-versus-reactive-policies

 

반응형

+ Recent posts