ID 644554 Banca FCC Órgão TJ-PE Ano 2012 Provas FCC - 2012 - TJ-PE - Analista Judiciário - Análise de Suporte Disciplina Banco de Dados Assuntos SQL Em SQL, a função utilizada para extrair caracteres de um campo texto é Alternativas MAX(). LEN(). AVG(). MID(). FORMAT(). Responder Comentários Essa eu não conhecia :-( MID () - Função usada para obter um determinado número de caracteres de um campo de texto. SELECT MID(column_name,começar[,comprimento]) FROM table_name a) MAX(). Returns the largest value of the selected column. b) LEN(). Returns the length of the value in a text field. c) AVG(). Returns the average value of a numeric column. d) MID(). Is used to extract characters from a text field. e) FORMAT(). Is used to format how a field is to be displayed. (Fonte: w3schools.com) Exemplo: SELECT MID("SQL Tutorial", 5, 3) AS ExtractString; Extrai a substring da string (inicia na posição 5, extrai 3 caracteres)