2

I have to store number data into database in format xx-xxxxxx-xx for example I have xml data in format: ISBN="10-000000-701" ISBN="11-000000-002" ISBN="11-000000-004"

and I need to store that number in db field but I don't know what field type to use. Any help?

1
  • 1
    There is an ISBN field module.
    – Kevin
    Dec 20, 2021 at 16:07

1 Answer 1

3

You can create a 'simple text' field. Then you can add a constraint to that field to ensure that it is in the correct format.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.