To get the field names, you must use the command:
select column_name from information_schema.columns where table_name='person';
My question is, how can I get the field types in a similar list?
SELECT column_name column_type # or data_type FROM information_schema.columns WHERE table_name = 'person';
Schema Information
select column_name, column_type from information_schema.columns where table_name='person';
SELECT column_name, data_type FROM information_schema.columns WHERE table_name='person';
column_name column_type : column_name, COLUMN_TYPE from information_schema.columns table_name = 'personal_info';
column_name:
column_name from information_schema.columns table_name = 'personal_info';
column_type: column_type from information_schema.columns table_name = 'personal_info';
al shema
SELECT table_name, column_name, column_type FROM information_schema.columns WHERE table_schema = 'shema name'
Source: https://habr.com/ru/post/1752299/More articles:Xpath escape colon - xpathBrief way to call ifilter with multiple predicates in python - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1752296/adding-user-class-to-all-presenters&usg=ALkJrhhL2xGnbJ3AHrUm2rnxt2hSA0vzuQpage break with IE and FF not working properly - htmlGet type descriptions in F # Interactive? - typesШифрование данных с помощью С# AesCryptoServiceProvider, зашифрованного с помощью BouncyCastle AesFastEngine - c#C # AES Encryption in CFB where equal text length equals encrypted length - c ++Webcam streaming on OS X - which technology to use? - real-timeUnit test Firefox extension? - javascriptSplit paragraph into lines in ZSH - stringAll Articles