Query exists? Get size / length of field

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Query exists? Get size / length of field

    I'm wondering if there is any way to have SQL return fields and automatically
    include the field size. It's such a pain to do manutally, it would just be so
    nice just to be able to set the input field's maxlength automatically! If ever
    field could just return firstname.length, lastname.length, etc.. that would be
    candy.

    johnmcgary Guest

  2. Similar Questions and Discussions

    1. Field Length Help
      I added a new field to my database: <CFQUERY NAME="addColumn" DATASOURCE="#APPLICATION.dsn#" USERNAME="#APPLICATION.dbuser#"...
    2. Query for MP3 track length
      Is there any way that you can store a MP3 in a database and query the DB for the length of a track. I am working on a artist site and I want to...
    3. copy and paste form RTF document into field in asp form cause it to bypass field length and javascript validation - how to overcome?
      I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed...
    4. How do I query whether a toplevel window exists?
      have opened 3 additional toplevel windows in my application for input of optional parameters. How can I query if they exist, so I don't recreate...
    5. Field length
      I would like to be able to set a field so you can not enter more than a preset number of characters.... What would the calculation be to make it...
  3. #2

    Default Re: Query exists? Get size / length of field

    It would be nice and candy indeed, but I do not know of any way to do it.
    However, If you have an Oracle DB, you could query the data dictionary and
    extract everything you need to know and more about the columns of your tables
    (and other DB objects if you wish).

    Frickie Guest

  4. #3

    Default Re: Query exists? Get size / length of field

    As a side note, maybe you could submit the idea as a feature request. It might be a nice enhancement to the getMetaData() function which can already return the data TypeName for query columns.
    mxstu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139