---
title: "Write a SQL Command to print a string in reverse order?"  
description: "Write a SQL Command to print a string in reverse order?"  
author: "Ashutosh Kumar Verma"  
published: 2021-11-17  
canonical: https://www.mindstick.com/interview/33829/write-a-sql-command-to-print-a-string-in-reverse-order  
category: "mssql server"  
tags: ["sql server", "sql"]  
reading_time: 1 minute  

---

# Write a SQL Command to print a string in reverse order?

## REVERSE():

The following SQL REVERSE() function is used to print a string in reverse order.

```
SELECT REVERSE('MindStick.com');
```

## output:

moc.kcitSdniM **\**

## Answers

### Answer by Ashutosh Kumar Verma

## REVERSE():

The following SQL REVERSE() function is used to print a string in reverse order.

```
SELECT REVERSE('MindStick.com');
```

## output:

moc.kcitSdniM **\**


---

Original Source: https://www.mindstick.com/interview/33829/write-a-sql-command-to-print-a-string-in-reverse-order

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
