background preloader

Coding

Facebook Twitter

Основы Java для начинающих. Библиотека программиста | Материалы по всему, что может быть интересно программисту. Java SE - Downloads | Oracle Technology Network. Microsoft SQL Server Product Samples: Database - Home. Lenovo T500 Laptop Keyboard Key Repair Video. Do you have a broken individual Lenovo laptop Key?

You have found the right website to fix your laptop key. You can simply replace the single keyboard key that is broken. You dont have to replace the entire keyboard. Here is a quick Lenovo Thinkpad T Series T500 Keyboard Key repair tutorial with step-by-step instructions.We also have a video tutorial guide on how to fix your laptop key for you to watch above. To install your Lenovo Thinkpad T Series T500 laptop key on your keyboard, start out by observing your metal hooks on your keyboard. Observe the metal hooks on your keyboard. Take the larger laptop key retainer clips and observe them closely. Place the smaller retainer clip on the larger plastic clip and insert its sticks into the holes of larger piece. Insert the bars on either side into the metal hooks. Take your key cap and place it in the middle of your retainer clips. That's all! CLSID List (Windows Class Identifiers)

Certain special folders within the operating system are identified by unique strings. Some of these strings can be used with FileSelectFile, FileSelectFolder, and Run. For example: The "Yes" entries in the last column are not authoritative: the Run command might support different CLSIDs depending on system configuration. To open a CLSID folder via Run, simply specify the CLSID as the first parameter. Studio Styles - Visual Studio color schemes. T-SQL String Manipulation Tips and Techniques, Part 1 | T-SQL content from SQL Server Pro. T-SQL is a language that was mainly designed to handle data manipulation tasks. Not much effort and attention were given to other kinds of tasks, such as string manipulation. Therefore, when you do need to manipulate strings in T-SQL, it can sometimes be quite challenging even for seemingly simple tasks. This article is the first of a two-part series in which I cover several common string manipulation needs.

I’d like to thank the following people who provided input regarding this topic: Ruben Garrigos, Kevin Boles, Fabiano Amorim, Milos Radivojevic, Peter Larsson, and Davide Mauri. Related: 8 T-SQL String Functions Counting Occurrences of a Substring Within a String The first technique that I discuss is an old one, yet it’s one of my favorites—especially because it’s interesting to see the expression of surprise on people’s faces when they learn it for the first time. DECLARE @str AS VARCHAR(1000) = 'abchellodehellofhello', @substr AS VARCHAR(1000) = 'hello'; DECLARE @num AS INT = -1759; Использование битовых флагов и масок. В этой статье я постараюсь рассказать, как можно использовать биты и операции над ними. Я выбрал php для демонстрации, так как тем кто знает другие языки, понять примеры не должно составить труда.

Предыдущая статья: Биты и битовые операции. Для чего можно использовать биты? Так как в байте 8 бит, то 1 байт это число от 0000 0000 до 1111 1111. А использовать их можно как хранилище состояний. Принято считать 1 - истиной, 0 - ложью. Многие компиляторы, сами приводят тип boolean к 1 биту, так что это не всегда позволит экономить место в памяти, но это и не единственная цель. Битовые маски Маской называют какой то набор бит, который используют для того что бы выбрать определённые биты из набора (переменной).

Например: 1 (0000 0001), 2 (0000 0010), 4 (0000 0100), 32 (0010 0000)... Можно конечно напрямую использовать числа, и составлять условия, но гораздо удобней давать каждому биту имя. Как установить бит в числе не затрагивая другие? Очень просто, вспомним операцию OR из предыдущей статьи. То есть. SQL Server: LPAD and RPAD functions equivalent. Oracle has two formatting functions LPAD and RPAD which formats the number by appending leading and trailing zeros respectively. SQL Server does not have direct equivalent functions. However you can simulate these functions using other string functions available in SQL Server.

Let us take a practical example. Suppose you want to export data to fixed format file and the requirement is that the number should be 10 digits long, in such a way that if the total number of digits is less than 10, the remaining digits should be filled with zeroes. Consider the following example declare @num int set @num=872382 select right(replicate('0',10)+cast(@num as varchar(15)),10) aS lpad_number, left(cast(@num as varchar(15))+replicate('0',10),10) as rpad_number The above code shows numbers in two formats. The right function picks the last 10 digits from the result, so that it has 4 leading zeroes, as the original number shown in the code above has only 6 digits. Did you like this post? About The Author. SQL работа со строками. Объединение строк, замена текста, поиск подстроки, символьные и другие функции. | WEBCodius.

Здравствуйте, уважаемые читатели блога webcodius.ru. Сегодня я хотел бы поговорить о языке SQL, а в частности о функциях для обработки текста. Для создания и управления сайтом часто бывает не обязательно знание языка SQL. Системы управления контентом позволяют редактировать контент сайта без написания запросов. Но хотя бы поверхностное знакомство с структурированным языком запросов поможет вам значительно ускорить модификацию и управление данными в базе данных вашего сайта. Передо мной частенько возникают задачи: удалить часть текста из текстовых полей базы данных, объединить строковые данные или еще что-нибудь связанное с текстом.

Итак, начнем... Символьные функции в языке sql Начнем по порядку с самого простого. Integer ASCII(str string) Функция возвращает целое значение — ASCII-код первого левого символа строки str. Пример: SELECT ASCII ('t'); Результат: 116 SELECT ASCII ('test'); Результат: 116 SELECT ASCII (1); Результат: 49 integer ORD(str string) SELECT ORD ('test'); Результат: 116.