Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Schema with String 'subset' like "day", "week", "month", "year"

allelopathallelopath Member Posts: 26
In a schema, is it possible to define a string with a fixed number of values, e.g. "day", "week", "month", "year"?

Comments

  • infidelinfidel Member Posts: 2,900
    : In a schema, is it possible to define a string with a fixed number of values, e.g. "day", "week", "month", "year"?

    Yes, look up the "enumeration" element of XMLSchema


    [size=5][italic][blue][RED]i[/RED]nfidel[/blue][/italic][/size]

    [code]
    $ select * from users where clue > 0
    no rows returned
    [/code]

  • allelopathallelopath Member Posts: 26
    thanks, this works
Sign In or Register to comment.