sql의 auto_increment는 표준이 아닌가요?

이한길의 이미지

sql의 auto_increment는 표준이 아닌가요?

오늘 보니까 그런것 같습니다만... 그렇다면..

다른(mysql외의) dbms에서는 어떻게 해야 하나요?

그리고 데이타 타잎중에.. text도 표준은 아닌것 같은데...

얼마나 되는 dbms들이 지원하는지 궁금합니다.

표준문서 어디서 볼 수 있나요?

찾아볼라고 했는데 찾기가 쉽지 않더라구요..

제가 영어를 못하는 탓일수도 있지만요..

다크슈테펜의 이미지

http://database.sarang.net/database/database.phtml
여기서 한번 참고 문서를 찾아보세요.

14번째 항목 SQL Documentation General (2001/07/31)이 도움이 될지도 모르겠습니다.

인생이란게 다 그런게 아니겠어요....? 뭘(?)
http://schutepen.egloos.com

소타의 이미지

auto_increment는 비표준입니다.
다른 DBMS에서는 sequence라는 비슷한 효과를 내고 있었습니다. mysql이 auto_increment로 sequence와 비슷한 효과를 "쉽게 사용할 수 있도록" 한 것입니다.
또 비슷한 것은 postgresql에는 serial, bigserial이라는 데이터 타입이 있는데 이것이 sequence를 쉽게 사용할 수 있게 합니다.
auto_increment와 거의 동일한 것은 sqlite말고는 못 본 것 같습니다.
구글링 해 보시면 왜 sequence에 대해 많은 자료를 찾으실 수 있습니다.

text는 postgresql에도 있습니다. 오라클에서는 clob를 쓰시면 될 것 같습니다.

이한길의 이미지

다크슈테펜 wrote:
http://database.sarang.net/database/database.phtml
여기서 한번 참고 문서를 찾아보세요.

14번째 항목 SQL Documentation General (2001/07/31)이 도움이 될지도 모르겠습니다.

http://database.sarang.net/ 이었군요..
database.kldp.org로 착각하고 봤다가 ... 사진만 보고 말았습니다 :oops:

감사합니다.

----
먼저 알게 된 것을 알려주는 것은 즐거운 일이다!
http://hangulee.springnote.com
http://hangulee.egloos.com

이한길의 이미지

소타 wrote:
auto_increment는 비표준입니다.
다른 DBMS에서는 sequence라는 비슷한 효과를 내고 있었습니다. mysql이 auto_increment로 sequence와 비슷한 효과를 "쉽게 사용할 수 있도록" 한 것입니다.
또 비슷한 것은 postgresql에는 serial, bigserial이라는 데이터 타입이 있는데 이것이 sequence를 쉽게 사용할 수 있게 합니다.
auto_increment와 거의 동일한 것은 sqlite말고는 못 본 것 같습니다.
구글링 해 보시면 왜 sequence에 대해 많은 자료를 찾으실 수 있습니다.

text는 postgresql에도 있습니다. 오라클에서는 clob를 쓰시면 될 것 같습니다.

감사합니다..
squence는 하나의 데이타 타잎인거 같네요.. 맞죠?

----
먼저 알게 된 것을 알려주는 것은 즐거운 일이다!
http://hangulee.springnote.com
http://hangulee.egloos.com

소타의 이미지

sequence는 하나의 릴레이션 입니다. 데이터 타입은 아니구요
sequence는 증가하는 숫자를 밷어줍니다. 그 밷어진 값을 데이터 삽입 시 사용하는 것이죠..

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.