Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SQL ALTER TABLE Question

Guest
Mar 05, 2008 Mar 05, 2008
Hi,

I'm fine changing the field type on a single field using the following sql:

ALTER TABLE #TP#_TemporaryTable
ALTER COLUMN Price double

I need to change multiple field types, can this be done in a single sql statement. I've tried

ALTER TABLE #TP#_TemporaryTable
ALTER COLUMN Price double
ALTER COLUMN UPC double

and a few others, but no luck. Is it possible to do this?

Thanks!

cfwild
TOPICS
Database access
591
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 05, 2008 Mar 05, 2008
I imagine that would depend entirely on which database you are using. My guess would be no, but your best bet is to check the documentation for whatever database you are using.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 05, 2008 Mar 05, 2008
Database is MS Access.

cfw
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Mar 05, 2008 Mar 05, 2008
LATEST
I tend to doubt MS Access would suppport it. But I am more familiar with other databases, than MS Access. So again your best bet is to check the MS Access documentation.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources