Course/MY-SQL

    문자열or텍스트 와 필드 값을 합치는 방법

    텍스트 + 필드 + 텍스트 작업 mssql에서 사용했었던 [ + ] 사용해서 쿼리를 돌리면산술 연산이 되는 문제[ & ], [ && ], [ AND ], [||] 등 전부 출력 값이 다름 해결 : mysql에서는 concat 함수를 사용하면 된다. CONCAT(문자열 혹은 필드명, 문자열 혹은 필드명) update TABLE set FIELD1 = CONCAT("텍스트1", FIELD2, "텍스트1")

    MySQL Problem ERROR 2005 (HY000): Unknown MySQL server host ‘localhost’ (0)

    The problem occurred after you installed window7:1ERROR 2005 (HY000): Unknown MySQL server host 'localhost' (0)I was able to solve this problem by modifying my list of hostnames:1C:\Windows\System32\drivers\etc\hostsMake sure that you have the following entry:1127.0.0.1 localhostThis ensures that the host “localhost” resolves to the IP address 127.0.0.1.