mysql에서 timestamp 컬럼을 추가할 때 주의할 점이 있다. 


timestamp 컬럼 그 자체로 타입을 정의하면, 밀리초(millisecond)는 나타나지 않는다.


timestamp(1)은  소수점 첫번째자리,

timestamp(2)는 소수점 두번째 자리를 표현한다.


그래서 최대 6자리 까지 정확도를 높일 수 있다.







https://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html




MySQL 5.6.4 and up expands fractional seconds support for TIMEDATETIME, and TIMESTAMP values, with up to microseconds (6 digits) precision:

  • To define a column that includes a fractional seconds part, use the syntax type_name(fsp), where type_name is TIMEDATETIME, or TIMESTAMP, and fsp is the fractional seconds precision. For example:

    CREATE TABLE t1 (t TIME(3), dt DATETIME(6));

    The fsp value, if given, must be in the range 0 to 6. A value of 0 signifies that there is no fractional part. If omitted, the default precision is 0. (This differs from the standard SQL default of 6, for compatibility with previous MySQL versions.)

  • Inserting a TIMEDATE, or TIMESTAMP value with a fractional seconds part into a column of the same type but having fewer fractional digits results in rounding. Consider a table created and populated as follows:

    CREATE TABLE fractest( c1 TIME(2), c2 DATETIME(2), c3 TIMESTAMP(2) );
    INSERT INTO fractest VALUES
    ('17:51:04.777', '2018-09-08 17:51:04.777', '2018-09-08 17:51:04.777');

    The temporal values are inserted into the table with rounding:

    mysql> SELECT * FROM fractest;
    +-------------+------------------------+------------------------+
    | c1          | c2                     | c3                     |
    +-------------+------------------------+------------------------+
    | 17:51:04.78 | 2018-09-08 17:51:04.78 | 2018-09-08 17:51:04.78 |
    +-------------+------------------------+------------------------+


Posted by '김용환'
,




전세 들어가기 전에 반드시 등기부 등본(http://www.iros.go.kr/PMainJ.jsp)을 떼어봐야 한다.


대출 상황, 주인 인원 뿐 아니라, 주인의 성향을 알아볼 때 중요하다.


1. 대출이 많으면 계약하지 않는다.

-- 경매 조심.


2. 주인이 여러명인데, (계약자가 여러명) 계약일에 모두 나오지 않는다면 계약하지 않는다.

-- 주인이 서로 싸우는 경우일수도 있다..


3. 임차권 등기 명령이 있으면 절대 계약하지 않는다

-- 전세금을 주기 싫어하는 주인이다.




특히 임차권 등기 명령(전세금을 안줘서 임차인이 임대인에게 소송)이 등기부 등본에 담겨 있기에.. 


주인이 어떤 사람인지 알 수 있다.


참고 : http://slownews.kr/46707

Posted by '김용환'
,

accrual 인식

나의 경제 2019. 3. 6. 15:01


매출채권의 개념에 대해서 잘 몰랐다.


회계 업무에 일부 참여하니. "accual 인식"이라는 용어를 사용하면서 매출 채권을 이해할 수 있었다..



참고  링크



https://coolestmoney.tistory.com/4


https://m.blog.naver.com/PostView.nhn?blogId=drakkon&logNo=140208805065&proxyReferer=https%3A%2F%2Fwww.google.com%2F

Posted by '김용환'
,



오랜만에 make를 쓰다보니 실수한 게 있다.


아래와 같은 에러를 만나면 탭(tab) 대신 스페이스(space)가 코드에 안에 있다고 알린다.


스페이스를 없애고 탭을 추가하면 더 이상 에러가 발생하지 않는다.

 


:makefile:4: *** missing separator.  Stop.




Posted by '김용환'
,



구글 논문 - 코드 저장소는 단일화(monolithic)가 좋더라는 내용이 담겨 있다.


https://people.engr.ncsu.edu/ermurph3/papers/seip18.pdf




Posted by '김용환'
,