Professional Web Applications Themes

Query exists? Get size / length of field - Coldfusion Database Access

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....

  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. #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

  3. #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

Similar Threads

  1. Question changing font size in a form field that auto-selects text size
    By Unregistered in forum Brainstorming Area
    Replies: 0
    Last Post: June 19th, 04:18 PM
  2. Field Length Help
    By canswim in forum Coldfusion Database Access
    Replies: 2
    Last Post: June 8th, 02:18 PM
  3. Replies: 3
    Last Post: May 13th, 12:15 AM
  4. How do I query whether a toplevel window exists?
    By Robert Greenway in forum PERL Beginners
    Replies: 5
    Last Post: September 29th, 05:09 PM
  5. Field length
    By Bebop & Rocksteady in forum FileMaker
    Replies: 9
    Last Post: July 13th, 01:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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